packages

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdExcludeDirRegexps = []string{
	"vendor$", "third_party$",
	"testdata$", "examples$",
	"Godeps$",
	"builtin$",
}

Functions

This section is empty.

Types

type Package

type Package struct {
	// contains filtered or unexported fields
}

func (*Package) BuildPackage added in v1.10.1

func (pkg *Package) BuildPackage() *build.Package

func (*Package) Dir added in v1.7.1

func (pkg *Package) Dir() string

func (*Package) Files

func (pkg *Package) Files(includeTest bool) []string

func (*Package) IsTestOnly added in v1.7.1

func (pkg *Package) IsTestOnly() bool

func (*Package) TestFiles added in v1.7.1

func (pkg *Package) TestFiles() []string

type Program

type Program struct {
	// contains filtered or unexported fields
}

func (*Program) BuildContext

func (p *Program) BuildContext() *build.Context

func (*Program) Dirs

func (p *Program) Dirs() []string

func (*Program) Files

func (p *Program) Files(includeTest bool) []string

func (Program) Packages

func (p Program) Packages() []Package

func (*Program) String

func (p *Program) String() string

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(buildTags, excludeDirs []string, log logutils.Log) (*Resolver, error)

func (Resolver) Resolve

func (r Resolver) Resolve(paths ...string) (prog *Program, err error)

Jump to

Keyboard shortcuts

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