Documentation ¶ Index ¶ func GetTypeDecl(decls []ast.Decl, name string) *ast.TypeSpec type File func Parse(file string) (*File, error) func (c *File) GetCode(node ast.Node) []byte func (c *File) GetCodeSlice(start token.Pos, end token.Pos) []byte func (c *File) GetFuncDecl(name string) *ast.FuncDecl func (c *File) GetMethodDecl(typeName string, name string) *ast.FuncDecl func (c *File) GetTypeDecl(name string) *ast.TypeSpec Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetTypeDecl ¶ func GetTypeDecl(decls []ast.Decl, name string) *ast.TypeSpec Types ¶ type File ¶ type File struct { Code []byte Ast *ast.File AbsFile string Fset *token.FileSet } func Parse ¶ func Parse(file string) (*File, error) func (*File) GetCode ¶ func (c *File) GetCode(node ast.Node) []byte func (*File) GetCodeSlice ¶ func (c *File) GetCodeSlice(start token.Pos, end token.Pos) []byte func (*File) GetFuncDecl ¶ func (c *File) GetFuncDecl(name string) *ast.FuncDecl func (*File) GetMethodDecl ¶ func (c *File) GetMethodDecl(typeName string, name string) *ast.FuncDecl func (*File) GetTypeDecl ¶ func (c *File) GetTypeDecl(name string) *ast.TypeSpec Source Files ¶ View all Source files transform.go Click to show internal directories. Click to hide internal directories.