Documentation
¶
Index ¶
- type BuildOpts
- type Environ
- func (c Environ) Build(pkg string, binaryPath string, opts BuildOpts) error
- func (c Environ) Env() []string
- func (c Environ) FindPackageByPath(path string) (string, error)
- func (c Environ) FindPackageDir(pkg string) (string, error)
- func (c Environ) ListDeps(pkg string) (*ListPackage, error)
- func (c Environ) ListPackage(pkg string) (*build.Package, error)
- func (c Environ) String() string
- type ListPackage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOpts ¶
type BuildOpts struct { // ExtraArgs to `go build`. ExtraArgs []string }
Optional arguments to Environ.Build.
type Environ ¶
func (Environ) FindPackageByPath ¶
FindPackageByPath gives the full Go package name for the package in `path`.
This currently assumes that packages are named after the directory they are in.
func (Environ) FindPackageDir ¶
FindPackageDir returns the full path to `pkg` according to the context's Gopaths.
Click to show internal directories.
Click to hide internal directories.