builder

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Output      string   `json:"output,omitempty" yaml:"output,omitempty"`               //
	NotRun      bool     `json:"not_run,omitempty" yaml:"not_run,omitempty"`             //
	NoCache     bool     `json:"no_cache,omitempty" yaml:"no_cache,omitempty"`           //
	Verbose     bool     `json:"verbose,omitempty" yaml:"verbose,omitempty"`             //
	X           bool     `json:"x,omitempty" yaml:"x,omitempty"`                         //
	KeepWorkDIR bool     `json:"keep_work_dir,omitempty" yaml:"keep_work_dir,omitempty"` //
	Race        bool     `json:"race,omitempty" yaml:"race,omitempty"`                   //
	LDFlags     string   `json:"ld_flags,omitempty" yaml:"ld_flags,omitempty"`           //
	ASMFlags    string   `json:"asm_flags,omitempty" yaml:"asm_flags,omitempty"`         //
	GccGoFlags  string   `json:"gcc_go_flags,omitempty" yaml:"gcc_go_flags,omitempty"`   //
	GCFlags     string   `json:"gc_flags,omitempty" yaml:"gc_flags,omitempty"`           //
	Compiler    string   `json:"compiler,omitempty" yaml:"compiler,omitempty"`           //
	Mod         string   `json:"mod,omitempty" yaml:"mod,omitempty"`                     //readonly, vendor, or mod
	ModFile     string   `json:"mod_file,omitempty" yaml:"mod_file,omitempty"`           //
	BuildMode   string   `json:"build_mode,omitempty" yaml:"build_mode,omitempty"`       //mode build mode to use. See 'go help buildmode' for more.
	LinkShared  bool     `json:"link_shared,omitempty" yaml:"link_shared,omitempty"`     //build code that will be linked against shared libraries previously created with -buildmode=shared.
	PkgDIR      string   `json:"pkg_dir,omitempty" yaml:"pkg_dir,omitempty"`             //install and load all packages from dir instead of the usual locations. For example, when building with a non-standard configuration, use -pkgdir to keep generated packages in a separate location.
	Tags        []string `json:"tags,omitempty" yaml:"tags,omitempty"`                   //
	TrimPath    bool     `json:"trim_path,omitempty" yaml:"trim_path,omitempty"`         //
	Static      bool     `json:"static,omitempty" yaml:"static,omitempty"`               //
	Files       []string `json:"files,omitempty" yaml:"files,omitempty"`                 //
	GOOS        string   `json:"goos,omitempty" yaml:"goos,omitempty"`                   //
	GOARCH      string   `json:"goarch,omitempty" yaml:"goarch,omitempty"`               //
	CGOEnabled  bool     `json:"cgo_enabled,omitempty" yaml:"cgo_enabled,omitempty"`     //
	GOPROXY     string   `json:"go_proxy,omitempty" yaml:"go_proxy,omitempty"`           //
	GO111MODULE string   `json:"go111_module,omitempty" yaml:"go111_module,omitempty"`   //
	UpxPack     bool     `json:"upx_pack,omitempty" yaml:"upx_pack,omitempty"`           //
}

func New

func New() *Builder

func (*Builder) ApplyToFlagSet

func (b *Builder) ApplyToFlagSet(fs *cli.FlagSet)

func (*Builder) BuildFlagOption

func (b *Builder) BuildFlagOption() cli.Option

func (*Builder) FromEnv

func (b *Builder) FromEnv() *Builder

func (*Builder) FromYAML

func (b *Builder) FromYAML(fn string) *Builder

func (*Builder) GenerateArgs added in v0.0.2

func (b *Builder) GenerateArgs(output string) (args []string)

Jump to

Keyboard shortcuts

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