Documentation ¶
Index ¶
- func NewArgs(flag string) *args
- type Context
- func (ctx *Context) AddBuildFlag(name string, value ...string)
- func (ctx *Context) AddLinkedFlag(value string)
- func (ctx *Context) AddLinkedVariable(key string, value string)
- func (ctx *Context) AddTag(tag string)
- func (ctx *Context) BuildCommand(colorized ...bool) *command.Command
- func (ctx *Context) Configure()
- func (ctx *Context) GetConfig() *config.Config
- func (ctx *Context) InputFile() string
- func (ctx *Context) Output() string
- func (ctx *Context) OutputFile() string
- func (ctx *Context) RunCommand(colorized ...bool) *command.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Image string `json:"image,omitempty"` Env map[string]string `json:"environment_variables"` Variables []string `json:"ldflag_variables"` WASM bool `json:"wasm"` OS []string `json:"operating_systems"` BuildFlags []string `json:"build_flags"` StripSymbols bool `json:"strip_symbols,omitempty"` StripDebugging bool `json:"disable_DWARF,omitempty"` LinkedLibPath []string `json:"linked_lib_path,omitempty"` ExtLD string `json:"extld,omitempty"` ExtLDFlags []string `json:"extldflags,omitempty"` LDFlags []string `json:"ldflags,omitempty"` TempDir string `json:"tmp_dir,omitempty"` Tags []string `json:"tags,omitempty"` InstallDependencies bool `json:"install_dependencies,omitempty"` Verbose bool `json:"verbose,omitempty"` CWD string `json:"current_working_directory"` ASMFlags *args `json:"asm_flags"` GCCGoFlags *args `json:"gcc_go_flags"` GCFlags *args `json:"gc_flags"` Name string `json:"name"` OutputPath string `json:"output_dir"` OutputFileName string `json:"output_filename"` Tidy bool `json:"auto_tidy"` Tiny bool `json:"use_tinygo"` UPX bool `json:"use_upx"` BuildFast bool `json:"build_fast"` PreRun []string `json:"before_run"` PostRun []string `json:"after_run"` PreBuild []string `json:"before_build"` PostBuild []string `json:"after_build"` Port int IgnoreCache bool Cached bool Prekill bool // contains filtered or unexported fields }
func (*Context) AddBuildFlag ¶
func (*Context) AddLinkedFlag ¶
func (*Context) AddLinkedVariable ¶
func (*Context) OutputFile ¶
Click to show internal directories.
Click to hide internal directories.