tweak layout
This commit is contained in:
parent
6e605f578e
commit
c86d0c4331
12
dns.go
12
dns.go
|
@ -132,9 +132,10 @@ type RR_Header struct {
|
||||||
Rdlength uint16 // length of data after header
|
Rdlength uint16 // length of data after header
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *RR_Header) Header() *RR_Header {
|
func (h *RR_Header) Header() *RR_Header { return h }
|
||||||
return h
|
|
||||||
}
|
// Just to imlement the RR interface
|
||||||
|
func (h *RR_Header) Copy() RR { return nil }
|
||||||
|
|
||||||
func (h *RR_Header) CopyHeader() *RR_Header {
|
func (h *RR_Header) CopyHeader() *RR_Header {
|
||||||
r := new(RR_Header)
|
r := new(RR_Header)
|
||||||
|
@ -146,11 +147,6 @@ func (h *RR_Header) CopyHeader() *RR_Header {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Just to imlement the RR interface
|
|
||||||
func (h *RR_Header) Copy() RR {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (h *RR_Header) String() string {
|
func (h *RR_Header) String() string {
|
||||||
var s string
|
var s string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue