gopkg

package
v0.0.0-...-063aa45 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanFilter

func ScanFilter(de *vfs.Dirent) bool

Types

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, nd *vfs.Node) (*Pkg, error)

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
}

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