Documentation ¶
Index ¶
- func Generate(ctx context.Context, pkgs []*packages.Package) <-chan Wrapper
- func LoadPackages(patterns []string) ([]*packages.Package, error)
- func NewFile(syntax SyntaxTree) (*ast.File, bool)
- func NewFuncBody(fdecl *ast.FuncDecl, pkgName string) ast.Stmt
- func NewFuncDecl(decl *ast.FuncDecl) (wrapped *ast.FuncDecl, ok bool)
- func NewMethodBody(fdecl *ast.FuncDecl) ast.Stmt
- func NewMethodDecl(fdecl *ast.FuncDecl) (wrapped *ast.FuncDecl, ok bool)
- type SyntaxTree
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SyntaxTree ¶
type SyntaxTree struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.