Documentation
¶
Index ¶
- func DotImportPaths(f *std_ast.File) (paths []string)
- func FileSetNodeToString(fset *token.FileSet, n std_ast.Node) string
- func FileSetNodeToStringShort(fset *token.FileSet, n std_ast.Node) string
- func GlobalImportPaths(f *std_ast.File) (paths []string)
- func ImportNameToPath(f *std_ast.File, target string) string
- func IsGlobalDeclName(f *std_ast.File, name string) bool
- func PositionStringShort(p token.Position) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DotImportPaths ¶
func FileSetNodeToStringShort ¶ added in v0.1.1
func GlobalImportPaths ¶
GlobalImportPaths returns all import paths of packages whose globals were imported into the file via dot- or non-blank-named import. It returns the path count.
func ImportNameToPath ¶
ImportNameToPath returns the path by a non-dot, non-blank import name.
func IsGlobalDeclName ¶
IsGlobalDeclName returns true if a const/function/type/var's name matches the input.
func PositionStringShort ¶ added in v0.1.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.