File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -751,6 +751,9 @@ func (p *Parser) AllAnswers() ([]Resource, error) {
751
751
}
752
752
753
753
// SkipAnswer skips a single Answer Resource.
754
+ //
755
+ // It does not perform a complete validation of the resource header, which means
756
+ // it may return a nil error when the [AnswerHeader] would actually return an error.
754
757
func (p * Parser ) SkipAnswer () error {
755
758
return p .skipResource (sectionAnswers )
756
759
}
@@ -801,6 +804,9 @@ func (p *Parser) AllAuthorities() ([]Resource, error) {
801
804
}
802
805
803
806
// SkipAuthority skips a single Authority Resource.
807
+ //
808
+ // It does not perform a complete validation of the resource header, which means
809
+ // it may return a nil error when the [AuthorityHeader] would actually return an error.
804
810
func (p * Parser ) SkipAuthority () error {
805
811
return p .skipResource (sectionAuthorities )
806
812
}
@@ -851,6 +857,9 @@ func (p *Parser) AllAdditionals() ([]Resource, error) {
851
857
}
852
858
853
859
// SkipAdditional skips a single Additional Resource.
860
+ //
861
+ // It does not perform a complete validation of the resource header, which means
862
+ // it may return a nil error when the [AdditionalHeader] would actually return an error.
854
863
func (p * Parser ) SkipAdditional () error {
855
864
return p .skipResource (sectionAdditionals )
856
865
}
You can’t perform that action at this time.
0 commit comments