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 parsed directory containing go files.
func Packages ¶
Packages 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.
Import returns an error if the package requested has no go files in it.
Click to show internal directories.
Click to hide internal directories.