Documentation ¶
Index ¶
- func ErrorCheckReturn(errVarIdent string, body ...ast.Stmt) *ast.IfStmt
- func FieldIndex(fields []*ast.Field, i int) (*ast.Ident, ast.Expr, bool)
- func Format(node ast.Node) string
- func HTTPStatusCode(pkg string, n int) ast.Expr
- func HTTPStatusName(name string) (int, error)
- func Int(n int) *ast.BasicLit
- func IterateFieldTypes(list []*ast.Field) func(func(int, ast.Expr) bool)
- func IterateFunctions(files []*ast.File) func(func(*ast.File, *ast.FuncDecl) bool)
- func IterateGenDecl(files []*ast.File, tok token.Token) func(func(*ast.File, *ast.GenDecl) bool)
- func IterateValueSpecs(files []*ast.File) func(func(*ast.File, *ast.ValueSpec) bool)
- func Templates(workingDirectory, templatesVariable string, fileSet *token.FileSet, ...) (*template.Template, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorCheckReturn ¶ added in v0.8.0
func FieldIndex ¶ added in v0.8.0
func HTTPStatusName ¶ added in v0.8.2
func IterateFieldTypes ¶ added in v0.7.0
func IterateFunctions ¶
func IterateGenDecl ¶
func IterateValueSpecs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.