Documentation ¶
Index ¶
- func GetFile(pkg *packages.Package, filename string) *ast.File
- func GetImportPathForDir(dir string) string
- func GetMethod(pkg *packages.Package, structName, methodName string) *ast.FuncDecl
- func GetSource(fset *token.FileSet, start, end token.Pos) (string, error)
- func GetStruct(pkg *packages.Package, structName string) *ast.GenDecl
- func GetTypePackageName(typ types.Type) string
- func ToComment(desc string) string
- type Import
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImportPathForDir ¶
func GetTypePackageName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.