Documentation
¶
Index ¶
- func DownloadGoMod(ctx context.Context) error
- func LoadBinaryName() string
- func MatchTargetPlatforms() (map[string][]string, error)
- func PrepareDirs(outputDir string) error
- func Run(ctx context.Context)
- type ArchContext
- type BuildStat
- type Builder
- type Config
- type DefaultOutputFormatter
- type OutputFormatter
- type PostOutputFormatter
- type Task
- type TaskContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadGoMod ¶
func LoadBinaryName ¶
func LoadBinaryName() string
func MatchTargetPlatforms ¶
MatchTargetPlatforms can only be executed once because permanent modify of global arch map
func PrepareDirs ¶
Types ¶
type ArchContext ¶
type Builder ¶
type Builder struct { OutputName string OutputFormatter OutputFormatter OutputDir string Cgo string Platforms map[string][]string GoCMD goCMD.BuildCommand WaitGroup *sync.WaitGroup TaskChan chan *Task FailedTaskChan chan string Compress compress.Make }
func NewBuilder ¶
func (*Builder) BuildThread ¶
func (b *Builder) BuildThread()
func (*Builder) CalcExtraArches ¶
func (*Builder) NewTask ¶
func (b *Builder) NewTask(ctx TaskContext) *Task
type Config ¶ added in v1.4.3
type Config struct { OutputDir string OutputFormatter OutputFormatter }
type DefaultOutputFormatter ¶ added in v1.4.3
type DefaultOutputFormatter struct{}
type OutputFormatter ¶ added in v1.4.3
type PostOutputFormatter ¶ added in v1.4.3
type PostOutputFormatter struct{}
type Task ¶
type TaskContext ¶
type TaskContext struct { ArchContext GOOS, GOARCH string NameSuffix, Env []string }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.