Documentation ¶ Index ¶ func AddMissingPackage(code string, pkgName string) string func Parse(file string) (code []byte, ast *ast.File, fset *token.FileSet, err error) func ParseFileCode(file string, code []byte) (ast *ast.File, fset *token.FileSet, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddMissingPackage ¶ func AddMissingPackage(code string, pkgName string) string func Parse ¶ func Parse(file string) (code []byte, ast *ast.File, fset *token.FileSet, err error) func ParseFileCode ¶ func ParseFileCode(file string, code []byte) (ast *ast.File, fset *token.FileSet, err error) file is optional Types ¶ This section is empty. Source Files ¶ View all Source files goparse.go Click to show internal directories. Click to hide internal directories.