I'm writing a simple golang application that needs to do some decoding of some DNS packets. I noticed that in the
net library, there appears to be the perfect implementation in the form of
net/dnsmsg.go which contains the right structs, pack / unpack functions etc.
However, the type is marked private (lower case
dnsMsg). So it appears that I have no way of using this from within my app.
I'm quite new to golang, so don't know if my only option would be to reimplement
net/dnsmsg.go myself, or if there's a better way around this.