Documentation ¶
Index ¶
- func PathExists(path string) (bool, error)
- type Generator
- func (g *Generator) Bytes() []byte
- func (g *Generator) Format() ([]byte, error)
- func (g *Generator) GetExprString(expr ast.Expr) string
- func (g *Generator) GetExprValueString(expr ast.Expr) string
- func (g *Generator) Output(output string)
- func (g *Generator) Prepare(dir string, files []string, output string)
- func (g *Generator) PrepareImports(imports map[string]string)
- func (g *Generator) PreparePackage(dir string, output string)
- func (g *Generator) PrepareParser()
- func (g *Generator) PrepareWithFile(fileName string, output string)
- func (g *Generator) ReduceType(expr ast.Expr) parser.Type
- func (g *Generator) ReduceTypeSrc(src string) parser.Type
- func (g *Generator) WorkFile() *parser.File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
Types ¶
type Generator ¶
type Generator struct { Parser *parser.Parser File *parser.File Pkg *parser.Package // contains filtered or unexported fields }
func (*Generator) PrepareImports ¶
func (*Generator) PreparePackage ¶
func (*Generator) PrepareParser ¶
func (g *Generator) PrepareParser()
func (*Generator) PrepareWithFile ¶
Click to show internal directories.
Click to hide internal directories.