Documentation ¶
Index ¶
- Variables
- func ArchClang(goarch string) string
- func Bind(flags *Flags, args []string) error
- func Build(flags *Flags, args []string) error
- func CopyDir(f *Flags, dst, src string) error
- func CopyDirContents(f *Flags, dst, src string) error
- func CopyFile(f *Flags, dst, src string) error
- func Darwin386Env(f *Flags) ([]string, error)
- func DarwinAmd64Env(f *Flags) ([]string, error)
- func DarwinArm64Env(f *Flags) ([]string, error)
- func DarwinArmEnv(f *Flags) ([]string, error)
- func EnvClang(flags *Flags, sdkName string) (_clang, cflags string, err error)
- func Environ(kv []string) []string
- func Getenv(env []string, key string) string
- func GoBuild(f *Flags, src string, env []string, ctx build.Context, tmpdir string, ...) error
- func GoCmd(f *Flags, subcmd string, srcs []string, env []string, ctx build.Context, ...) error
- func GoEnv(name string) string
- func GoInstall(f *Flags, srcs []string, env []string, ctx build.Context, tmpdir string, ...) error
- func GoMobilePath() (string, error)
- func GoVersion(f *Flags) ([]byte, error)
- func Import(ctx *build.Context, path, srcDir string, mode build.ImportMode, ...) error
- func ImportAll(ctx *build.Context, paths []string, srcDir string, mode build.ImportMode) (map[string]*build.Package, error)
- func Init(flags *Flags) error
- func InstallPkg(f *Flags, temporarydir string, pkg string, env []string, args ...string) error
- func Mkdir(flags *Flags, dir string) error
- func NewTmpDir(f *Flags, path string) (string, error)
- func PackageDir(f *Flags, pkgpath string) (string, error)
- func PkgPath(env []string) (string, error)
- func PrintCmd(cmd *exec.Cmd)
- func ReadFile(flags *Flags, filename string) ([]byte, error)
- func RemoveAll(f *Flags, path string) error
- func RunCmd(f *Flags, tmpdir string, cmd *exec.Cmd) error
- func Symlink(flags *Flags, src, dst string) error
- func WriteFile(flags *Flags, filename string, generate func(io.Writer) error) error
- func XcodeAvailable() bool
- type Flags
Constants ¶
This section is empty.
Variables ¶
View Source
var BindFile = `
package main
import (
_ "gomatcha.io/bridge"
_ "%s"
)
import "C"
func main() {}
`
Functions ¶
func CopyDirContents ¶
func Darwin386Env ¶
func DarwinAmd64Env ¶
func DarwinArm64Env ¶
func DarwinArmEnv ¶
func Environ ¶
environ merges os.Environ and the given "key=value" pairs. If a key is in both os.Environ and kv, kv takes precedence.
func InstallPkg ¶
Build package with properties.
func PackageDir ¶
Returns the directory for a given package.
func XcodeAvailable ¶
func XcodeAvailable() bool
Types ¶
type Flags ¶
type Flags struct { BuildN bool // print commands but don't run BuildX bool // print commands BuildV bool // print package names BuildWork bool // use working directory BuildGcflags string // -gcflags BuildLdflags string // -ldflags BuildO string // output path BuildBinary bool }
func (*Flags) ShouldPrint ¶
Click to show internal directories.
Click to hide internal directories.