Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir represents a directory containing go files.
func Load ¶
Load looks for directories matching the passed in package patterns and returns Dir values for each directory that can be successfully imported and is found to match one of the patterns.
func (Dir) Import ¶
Import imports path from srcDir, then loads the ast for that package. It ensures that the returned ast is for the package that would be imported by an import clause.
Click to show internal directories.
Click to hide internal directories.