package
0.0.0-20240218083831-f3d0830b90f6
Repository: https://github.com/bobg/godef.git
Documentation: pkg.go.dev

# Functions

ParseDeclList parses a list of Go declarations and returns the list of corresponding AST nodes.
ParseDir calls ParseFile for the files in the directory specified by path and returns a map of package name -> package AST with all the packages found.
ParseExpr parses a Go expression and returns the corresponding AST node.
ParseFile parses the source code of a single Go source file and returns the corresponding ast.File node.
ParseFiles calls ParseFile for each file in the filenames list and returns a map of package name -> package AST with all the packages found.
ParseStmtList parses a list of Go statements and returns the list of corresponding AST nodes.

# Constants

report declaration errors.
parsing stops after import declarations.
parsing stops after package clause.
parse comments and add them to AST.
print a trace of parsed productions.

# Variables

No description provided by the author

# Type aliases

ImportPathToName is the type of the function that's used to find the package name for an imported package path.