work

package
v0.7.17 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOPBIN added in v0.7.15

func GOPBIN() string

func GOPROOT added in v0.7.15

func GOPROOT() string

func GenGo

func GenGo(dir, toDir string) error

func GenGoPkg added in v0.7.15

func GenGoPkg(fset *token.FileSet, pkg *ast.Package, dir string) (err error)

func GoBuild added in v0.7.15

func GoBuild(dir string, target string, args ...string) error

func GoInstall added in v0.7.15

func GoInstall(dir string, args ...string) error

Types

type Package added in v0.7.15

type Package struct {
	Name      string       // package name
	Dir       string       // package source dir
	Pkg       *ast.Package // ast.Package
	Target    string       // build target
	IsDir     bool         // build input is dir
	GenGoFile string       // generate go file path
}

func LoadPackages added in v0.7.15

func LoadPackages(fset *token.FileSet, args []string) (pkgs []*Package, errs []error)

Jump to

Keyboard shortcuts

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