Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirToAstWalker ¶
func DirToAstWalker(targetDir string) (map[string]AstPkgWalker, error)
DirToAstWalker initializes map of AstPkgWalker from given directory
Types ¶
type AstPkgWalker ¶
type AstPkgWalker struct { FileSet *token.FileSet Pkg *ast.Package Files []*ast.File Decls []ast.Decl PkgPath string }
AstPkgWalker represents ast package walker
func ParseAstPkg ¶
ParseAstPkg parses package ast
func (AstPkgWalker) AllGenDecls ¶
func (w AstPkgWalker) AllGenDecls() []*ast.GenDecl
AllGenDecls returns all generic declaration nodes
func (AstPkgWalker) AllStructSpecs ¶
func (w AstPkgWalker) AllStructSpecs() []*ast.TypeSpec
AllStructSpecs returns all struct type specs
Click to show internal directories.
Click to hide internal directories.