udwGoBuildCtx

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArchList

func GetArchList() []string

func GetDefaultGoPathList

func GetDefaultGoPathList() []string

func GetDefaultGoPathString

func GetDefaultGoPathString() string

func GetDefaultGoRoot

func GetDefaultGoRoot() string

func GetOsList

func GetOsList() []string

func MustGetGoBuildCtx

func MustGetGoBuildCtx(ctx CtxReq) *build.Context

Types

type Ctx

type Ctx struct {
	DisableCgo                   bool
	BinOutputPath                string
	BuildTargetPkgPath           string
	BuildVariableMap             map[string]string
	EnableRace                   bool
	EnableSymbolDebug            bool
	BuildWindowsNeedManifest     bool
	BuildWindowsIconPngContent   []byte
	BuildIsRequireRootPermission bool
	BuildWindowsDisableConsole   bool

	BuildCcPath         string
	BuildCxxPath        string
	BuildAndroidHome    string
	BuildGoArm          string
	BuildGo386          string
	BuildSo             bool
	BuildCgoCflags      string
	BuildCgoCppFlags    string
	BuildCgoLdFlags     string
	BuildA              bool
	BuildCgoDebug       bool
	BuildGoPathOnlyBase bool
	// contains filtered or unexported fields
}

func NewCtx

func NewCtx(req CtxReq) *Ctx

func NewCtxDefault

func NewCtxDefault() *Ctx

func (*Ctx) Clone

func (ctx *Ctx) Clone() *Ctx

func (*Ctx) GetFirstGoPathString

func (ctx *Ctx) GetFirstGoPathString() string

func (*Ctx) GetGoArch

func (ctx *Ctx) GetGoArch() string

func (*Ctx) GetGoInstallOutputExeFilePath

func (ctx *Ctx) GetGoInstallOutputExeFilePath() string

func (*Ctx) GetGoOs

func (ctx *Ctx) GetGoOs() string

func (*Ctx) GetGoPathList

func (ctx *Ctx) GetGoPathList() []string

func (*Ctx) GetGoPathString

func (ctx *Ctx) GetGoPathString() string

func (*Ctx) GetGoRoot

func (ctx *Ctx) GetGoRoot() string

func (*Ctx) GetGoSearchPathList

func (ctx *Ctx) GetGoSearchPathList() []string

func (*Ctx) GetOutputExeFileExt

func (ctx *Ctx) GetOutputExeFileExt() string

func (*Ctx) GetOutputExeFilePath

func (ctx *Ctx) GetOutputExeFilePath() string

func (*Ctx) GetTagList

func (ctx *Ctx) GetTagList() []string

func (*Ctx) IsGoArchAmd64

func (ctx *Ctx) IsGoArchAmd64() bool

func (*Ctx) IsGoArchArm

func (ctx *Ctx) IsGoArchArm() bool

func (*Ctx) IsGoOsAndroid

func (ctx *Ctx) IsGoOsAndroid() bool

func (*Ctx) IsGoOsDarwin

func (ctx *Ctx) IsGoOsDarwin() bool

func (*Ctx) IsGoOsLinux

func (ctx *Ctx) IsGoOsLinux() bool

func (*Ctx) IsGoOsWindows

func (ctx *Ctx) IsGoOsWindows() bool

func (*Ctx) SetGoArch

func (ctx *Ctx) SetGoArch(arch string)

func (*Ctx) SetGoOs

func (ctx *Ctx) SetGoOs(os string)

func (*Ctx) SetGoPathList

func (ctx *Ctx) SetGoPathList(v []string)

func (*Ctx) SetGoPathString

func (ctx *Ctx) SetGoPathString(v string)

func (*Ctx) SetGoRoot

func (ctx *Ctx) SetGoRoot(v string)

func (*Ctx) SetTagList

func (ctx *Ctx) SetTagList(tagList []string)

func (*Ctx) ToGoBuildCtx

func (ctx *Ctx) ToGoBuildCtx() *build.Context

func (*Ctx) UpdateFromGoEnv

func (ctx *Ctx) UpdateFromGoEnv(env map[string]string)

type CtxReq

type CtxReq struct {
	GoPathList   []string
	GoPathString string
	GoRoot       string

	TagList []string

	TargetOsArch string
	TargetOs     string
	TargetArch   string

	BuildTargetPkgPath string
}

Jump to

Keyboard shortcuts

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