source

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCheckReturn added in v0.8.0

func ErrorCheckReturn(errVarIdent string, body ...ast.Stmt) *ast.IfStmt

func FieldIndex added in v0.8.0

func FieldIndex(fields []*ast.Field, i int) (*ast.Ident, ast.Expr, bool)

func Format added in v0.4.1

func Format(node ast.Node) string

func HTTPStatusCode added in v0.8.0

func HTTPStatusCode(pkg string, n int) ast.Expr

func HTTPStatusName added in v0.8.2

func HTTPStatusName(name string) (int, error)

func Int added in v0.8.0

func Int(n int) *ast.BasicLit

func IterateFieldTypes added in v0.7.0

func IterateFieldTypes(list []*ast.Field) func(func(int, ast.Expr) bool)

func IterateFunctions

func IterateFunctions(files []*ast.File) func(func(*ast.File, *ast.FuncDecl) bool)

func IterateGenDecl

func IterateGenDecl(files []*ast.File, tok token.Token) func(func(*ast.File, *ast.GenDecl) bool)

func IterateValueSpecs

func IterateValueSpecs(files []*ast.File) func(func(*ast.File, *ast.ValueSpec) bool)

func Templates

func Templates(workingDirectory, templatesVariable string, fileSet *token.FileSet, files []*ast.File, embeddedAbsolutePath []string) (*template.Template, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL