Documentation
¶
Index ¶
- func CollectImports(f *ast.File) []*ast.ImportSpec
- func CreateOutputDir(dir string) error
- func CreateOutputFile(dir string, f *jen.File) error
- func ExtractTypeInfo(expr ast.Expr) (paramType, importPath, typePkg string)
- func FormatFuncType(fType *ast.FuncType) string
- func ParseType(typ string) *jen.Statement
- func Render(b []byte, w io.Writer) error
- type BaseGenerator
- type Generator
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectImports ¶ added in v0.0.6
func CollectImports(f *ast.File) []*ast.ImportSpec
func CreateOutputDir ¶ added in v0.0.6
func ExtractTypeInfo ¶ added in v0.6.0
func FormatFuncType ¶ added in v0.6.0
Types ¶
type BaseGenerator ¶
BaseGenerator provides common functionality for generators
func NewBaseGenerator ¶
func NewBaseGenerator(n string, w io.Writer, t bool) *BaseGenerator
NewBaseGenerator creates a new base generator
Click to show internal directories.
Click to hide internal directories.