Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2021 Changes in this version + func ConvertToUnexported(name string) string + func InferName(expr ast.Expr) string + func IsExported(name string) bool + func WriteFile(path string, fset *token.FileSet, file *ast.File) error + type Compiler struct + func NewCompiler(ui ui.UI, consumers ...*Consumer) *Compiler + func (c *Compiler) Compile(packages string, opts ParseOptions) error + type Consumer struct + FilePost func(*File, *goast.File) error + FilePre func(*File, *goast.File) bool + FuncDecl func(*Func, *goast.FuncType, *goast.BlockStmt) + FuncType func(*Type, *goast.FuncType) + Import func(*File, *goast.ImportSpec) + Interface func(*Type, *goast.InterfaceType) + Name string + Package func(*Package, *goast.Package) bool + Struct func(*Type, *goast.StructType) + type File struct + Name string + type Func struct + Name string + RecvName string + RecvType goast.Expr + func (f *Func) IsExported() bool + func (f *Func) IsMethod() bool + type Module struct + Name string + type Package struct + BaseDir string + ImportPath string + Name string + RelativeDir string + type ParseOptions struct + MergePackageFiles bool + SkipTestFiles bool + TypeFilter TypeFilter + type Type struct + Name string + func (t *Type) IsExported() bool + type TypeFilter struct + Exported bool + Names []string + Regexp *regexp.Regexp