Documentation
¶
Overview ¶
Package gogen includes logic to generate files using Go template.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Description ¶
type Description struct { Name string Pkg *Package Imports []*Package IsInterface bool IsStruct bool Methods []*Method Fields []*Field }
Description includes parsed information of a Go name. It will be used to feed data to the template.
type Generator ¶
type Generator struct { Dir string Format bool Name string Output string Template string TemplateFile string Writer io.Writer // contains filtered or unexported fields }
Generator is an execution to generate code. Call Run method to trigger the job.
Click to show internal directories.
Click to hide internal directories.