Documentation ¶
Index ¶
- func GarbleCmd(config GoConfig, cwd string, command []string) ([]byte, error)
- func GetGoCache(appDir string) string
- func GetGoModCache(appDir string) string
- func GetGoRootDir(appDir string) string
- func GoBuild(config GoConfig, src string, dest string, buildmode string, tags []string, ...) ([]byte, error)
- func GoCmd(config GoConfig, cwd string, command []string) ([]byte, error)
- func GoMod(config GoConfig, src string, args []string) ([]byte, error)
- func GoToolDistList(config GoConfig) []string
- func GoVersion(config GoConfig) ([]byte, error)
- func ValidCompilerTargets(config GoConfig) map[string]bool
- type GoConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoCache ¶ added in v1.4.0
GetGoCache - Get the OS temp dir (used for GOCACHE)
func GetGoModCache ¶ added in v1.4.0
GetGoModCache - Get the GoMod cache dir
func GoBuild ¶
func GoBuild(config GoConfig, src string, dest string, buildmode string, tags []string, ldflags []string, gcflags, asmflags string, trimpath string) ([]byte, error)
GoBuild - Execute a go build command, returns stdout/error
func GoToolDistList ¶ added in v1.4.18
GoToolDistList - Get a list of supported GOOS/GOARCH pairs
func ValidCompilerTargets ¶
ValidCompilerTargets - Returns a map of valid compiler targets
Types ¶
Click to show internal directories.
Click to hide internal directories.