gopkg

package
v0.0.0-...-52b1b20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 14 Imported by: 19

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

type PkgPath

type PkgPath struct {
	Dir        string
	ImportPath string
	Goroot     bool
	Mod        *ModPath
}

func FindPkg

func FindPkg(mx *mg.Ctx, importPath, srcDir string) (*PkgPath, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL