use in
This commit is contained in:
parent
de20557d38
commit
2d90a06ade
6
dns.go
6
dns.go
|
@ -62,14 +62,14 @@
|
||||||
// An asynchronous query is also possible, see client.Do and client.DoRtt.
|
// An asynchronous query is also possible, see client.Do and client.DoRtt.
|
||||||
//
|
//
|
||||||
// From a birds eye view a dns message consists out of four sections.
|
// From a birds eye view a dns message consists out of four sections.
|
||||||
// The question section: m.Question, the answer answer section: m.Answer,
|
// The question section: in.Question, the answer answer section: in.Answer,
|
||||||
// the authority section: m.Ns and the additional section: m.Extra.
|
// the authority section: in.Ns and the additional section: in.Extra.
|
||||||
//
|
//
|
||||||
// Each of these sections (except the Question section) contain a []RR. Basic
|
// Each of these sections (except the Question section) contain a []RR. Basic
|
||||||
// use pattern for accessing the rdata of a TXT RR as the first RR in
|
// use pattern for accessing the rdata of a TXT RR as the first RR in
|
||||||
// the Answer section:
|
// the Answer section:
|
||||||
//
|
//
|
||||||
// if t, ok := m.Answer[0].(*RR_TXT); ok {
|
// if t, ok := in.Answer[0].(*RR_TXT); ok {
|
||||||
// // do something with t.Txt
|
// // do something with t.Txt
|
||||||
// }
|
// }
|
||||||
package dns
|
package dns
|
||||||
|
|
Loading…
Reference in New Issue