Documentation ¶
Index ¶
- Variables
- func GetPackage(path string, options ...Option) (*types.File, error)
- func IsCommonReceiver(t types.Type) bool
- func MergeFiles(files []*types.File) (*types.File, error)
- func ParseAstFile(file *ast.File, options ...Option) (*types.File, error)
- func ParseFile(filename string, options ...Option) (*types.File, error)
- func ParsePackage(path string, options ...Option) ([]*types.File, error)
- func ResolvePackagePath(outPath string) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetPackage ¶ added in v1.2.0
func IsCommonReceiver ¶
func MergeFiles ¶
Merges parsed files to one. Helpful, when you need full information about package.
func ParseAstFile ¶
Parses ast.File and return all top-level declarations.
func ParsePackage ¶
Parses all .go files from directory. Deprecated: use GetPackage instead
func ResolvePackagePath ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
test
|
|
assets/full
This is a file documentation.
|
This is a file documentation. |
Click to show internal directories.
Click to hide internal directories.