Documentation ¶
Index ¶
- func GetPackagePath(dir string) (string, error)
- func GetPackagePathFromImport(imp *ast.ImportSpec) string
- func IsInSrcDirs(dir string) bool
- func IsPseudoPackage(pkgPath string) bool
- func NoTestFiles(info os.FileInfo) bool
- type Package
- func (p Package) Dir() string
- func (p *Package) Import(srcPath string, ignoreVendor bool) error
- func (p Package) IsLocal() bool
- func (p Package) IsPseudoPackage() bool
- func (p Package) IsSaved() bool
- func (p Package) IsStandardPackage() bool
- func (p Package) IsVendored() bool
- func (p Package) MarshalJSON() ([]byte, error)
- func (p Package) MarshalYAML() (interface{}, error)
- func (p Package) Path() string
- func (p *Package) UnmarshalJSON(data []byte) error
- func (p *Package) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackagePath ¶
func GetPackagePathFromImport ¶
func GetPackagePathFromImport(imp *ast.ImportSpec) string
func IsInSrcDirs ¶
func IsPseudoPackage ¶
func NoTestFiles ¶
Types ¶
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
func NewFromImport ¶
func NewFromImport(imp *ast.ImportSpec) *Package
func (Package) IsPseudoPackage ¶
func (Package) IsStandardPackage ¶
func (Package) IsVendored ¶
func (Package) MarshalJSON ¶
func (Package) MarshalYAML ¶
func (*Package) UnmarshalJSON ¶
func (*Package) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.