Documentation ¶
Index ¶
- Variables
- func GetGoPathDir(appDir string) string
- func GetGoRootDir(appDir string) string
- func GetTempDir() 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 GoVersion(config GoConfig) ([]byte, error)
- type GoConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValidCompilerTargets - Supported compiler targets ValidCompilerTargets = map[string]bool{ "aix/ppc64": true, "android/386": true, "android/amd64": true, "android/arm": true, "android/arm64": true, "darwin/amd64": true, "darwin/arm64": true, "dragonfly/amd64": true, "freebsd/386": true, "freebsd/amd64": true, "freebsd/arm": true, "freebsd/arm64": true, "illumos/amd64": true, "ios/amd64": true, "ios/arm64": true, "js/wasm": true, "linux/386": true, "linux/amd64": true, "linux/arm": true, "linux/arm64": true, "linux/mips": true, "linux/mips64": true, "linux/mips64le": true, "linux/mipsle": true, "linux/ppc64": true, "linux/ppc64le": true, "linux/riscv64": true, "linux/s390x": true, "netbsd/386": true, "netbsd/amd64": true, "netbsd/arm": true, "netbsd/arm64": true, "openbsd/386": true, "openbsd/amd64": true, "openbsd/arm": true, "openbsd/arm64": true, "openbsd/mips64": true, "plan9/386": true, "plan9/amd64": true, "plan9/arm": true, "solaris/amd64": true, "windows/386": true, "windows/amd64": true, "windows/arm": true, } )
Functions ¶
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
Types ¶
Click to show internal directories.
Click to hide internal directories.