Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanFilter ¶
func ScanFilter(de *vfs.Dirent) bool
Types ¶
type ModPath ¶
type ModPath struct {
Parent *ModPath
Dir string
}
func (*ModPath) FindPkg ¶
func (mp *ModPath) FindPkg(mx *mg.Ctx, importPath, srcDir string) (*PkgPath, error)
type Pkg ¶
type Pkg struct {
ImportablePfx string
// The following fields are a subset of build.Package
Dir string
Name string
ImportPath string
Goroot bool
}
func ImportDir ¶
func ImportDir(mx *mg.Ctx, dir string) (*Pkg, error)
func ImportDirNd ¶
func ImportDirNd(mx *mg.Ctx, dir *vfs.Node) (*Pkg, error)
func PeekDir ¶
func PeekDir(mx *mg.Ctx, dir string) *Pkg
func PeekDirNd ¶
func PeekDirNd(mx *mg.Ctx, dir *vfs.Node) *Pkg
func (*Pkg) Finalize ¶
func (p *Pkg) Finalize()
func (*Pkg) Importable ¶
func (p *Pkg) Importable(srcDir string) bool
func (*Pkg) IsCommand ¶
func (p *Pkg) IsCommand() bool
Click to show internal directories.
Click to hide internal directories.