Documentation ¶
Index ¶
- func GetArchList() []string
- func GetDefaultGoPathList() []string
- func GetDefaultGoPathString() string
- func GetDefaultGoRoot() string
- func GetOsList() []string
- func MustGetGoBuildCtx(ctx CtxReq) *build.Context
- type Ctx
- func (ctx *Ctx) Clone() *Ctx
- func (ctx *Ctx) GetFirstGoPathString() string
- func (ctx *Ctx) GetGoArch() string
- func (ctx *Ctx) GetGoInstallOutputExeFilePath() string
- func (ctx *Ctx) GetGoOs() string
- func (ctx *Ctx) GetGoPathList() []string
- func (ctx *Ctx) GetGoPathString() string
- func (ctx *Ctx) GetGoRoot() string
- func (ctx *Ctx) GetGoSearchPathList() []string
- func (ctx *Ctx) GetOutputExeFileExt() string
- func (ctx *Ctx) GetOutputExeFilePath() string
- func (ctx *Ctx) GetTagList() []string
- func (ctx *Ctx) IsGoArchAmd64() bool
- func (ctx *Ctx) IsGoArchArm() bool
- func (ctx *Ctx) IsGoOsAndroid() bool
- func (ctx *Ctx) IsGoOsDarwin() bool
- func (ctx *Ctx) IsGoOsLinux() bool
- func (ctx *Ctx) IsGoOsWindows() bool
- func (ctx *Ctx) SetGoArch(arch string)
- func (ctx *Ctx) SetGoOs(os string)
- func (ctx *Ctx) SetGoPathList(v []string)
- func (ctx *Ctx) SetGoPathString(v string)
- func (ctx *Ctx) SetGoRoot(v string)
- func (ctx *Ctx) SetTagList(tagList []string)
- func (ctx *Ctx) ToGoBuildCtx() *build.Context
- func (ctx *Ctx) UpdateFromGoEnv(env map[string]string)
- type CtxReq
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 MustGetGoBuildCtx ¶
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 NewCtxDefault ¶
func NewCtxDefault() *Ctx
func (*Ctx) GetFirstGoPathString ¶
func (*Ctx) GetGoInstallOutputExeFilePath ¶
func (*Ctx) GetGoPathList ¶
func (*Ctx) GetGoPathString ¶
func (*Ctx) GetGoSearchPathList ¶
func (*Ctx) GetOutputExeFileExt ¶
func (*Ctx) GetOutputExeFilePath ¶
func (*Ctx) GetTagList ¶
func (*Ctx) IsGoArchAmd64 ¶
func (*Ctx) IsGoArchArm ¶
func (*Ctx) IsGoOsAndroid ¶
func (*Ctx) IsGoOsDarwin ¶
func (*Ctx) IsGoOsLinux ¶
func (*Ctx) IsGoOsWindows ¶
func (*Ctx) SetGoPathList ¶
func (*Ctx) SetGoPathString ¶
func (*Ctx) SetTagList ¶
func (*Ctx) ToGoBuildCtx ¶
func (*Ctx) UpdateFromGoEnv ¶
Click to show internal directories.
Click to hide internal directories.