istio: Index | Files

package crosscompile

import ""


Package Files



const (
    GoosLinux   = "linux"
    GoarchAmd64 = "amd64"

func Do Uses

func Do(cfg Config) (string, error)

Do cross-compiles the given app for the target OS and ARCH and returns the path to the binary.

type Config Uses

type Config struct {
    GOOS    string
    GOARCH  string
    SrcRoot string
    SrcPath string
    OutDir  string

Config for a cross-compile operation.

func (Config) LinuxAmd64 Uses

func (c Config) LinuxAmd64() Config

LinuxAmd64 is a utility function that returns a copy of this config with GOOS="linux" and GOARCH="amd64".

Package crosscompile imports 5 packages (graph). Updated 2019-08-06. Refresh now. Tools for package owners.