build

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*build.Context
}

A Context specifies the supporting context for a build.

func (Context) Import

func (ctxt Context) Import(path string, srcDir string, mode ImportMode) (ret Package, err error)

Import returns details about the Go package named by the import path, interpreting local import paths relative to the srcDir directory. If the path is a local import path naming a package that can be imported using a standard import path, the returned package will set p.ImportPath to that path.

If an error occurs, Import returns a non-nil error and a non-nil *Package containing partial information.

func (*Context) ImportDir

func (ctxt *Context) ImportDir(dir string, mode ImportMode) (Package, error)

ImportDir is like Import but processes the Go package found in the named directory.

type ImportMode

type ImportMode = build.ImportMode

An ImportMode controls the behavior of the Import method.

type Package

type Package struct {
	*build.Package
}

A Package describes the Go package found in a directory.

Jump to

Keyboard shortcuts

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