Documentation ¶
Index ¶
- Constants
- Variables
- func Hdr(w io.Writer, name string, imports ...[]string)
- func Load() (*types.Package, error)
- func Name(w io.Writer, name string, last bool)
- func New(name, s string) *template.Template
- func RR(t types.Type, scope *types.Scope) *types.Struct
- func SaveSource(buf []byte, filename string) error
- func Types(pkg *types.Package, prefix string) []string
- func TypesOf(pkg *types.Package, typ string) []string
- func Uint16(w io.Writer, name string, last bool)
- func Uint32(w io.Writer, name string, last bool)
Constants ¶
View Source
const Import = "github.com/miekg/dnsv2"
Import is our package name.
Variables ¶
Funcs are default funcs we use in the templates.
Functions ¶
func RR ¶
RR will take a type and the package scope, and return the (innermost) struct if the type is considered a RR type
func SaveSource ¶
SaveSource formats the source in buf and saves it into filename. Filename should start with a 'z'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.