Versions in this module Expand all Collapse all v0 v0.1.4 Sep 7, 2022 v0.1.3 Sep 7, 2022 v0.1.2 Sep 7, 2022 Changes in this version type BuildConfig + Debug bool + Generate bool + LdFlags string v0.1.1 Jan 29, 2022 Changes in this version + func AddCmd(cmd Cmd) + func BundleFile(loc string, dist Distribution, config BuildConfig) (err error) + func CleanDirGlob(dir, pattern string) error + func Execute() (err error) + func GetAliases(availableDistributions DistributionSet) (aliases map[string]DistributionSet) + func RenderString(tmpl *template.Template, data interface{}) (string, error) + func StringCut(val string, sep string) (left, right string, found bool) + func StringCutAny(val string, seperators ...string) (left, right string, found bool) + func StringSliceContains(s []string, key string) bool + func StringSliceContainsAny(s []string, keys ...string) bool + func StringSliceCut(items []string, search string) (left, right []string, found bool) + func StringSliceExclude(s []string, exclude []string) (res []string) + func StringSliceMerge(a []string, b []string) (res []string) + func StringSliceRemove(haystack []string, needle string) (res []string) + func StringSplitMany(val string, seperators ...string) (parts []string) + type BuildConfig struct + Aliases StringSlice + BuildArgs []string + BundleTemplate string + CGO bool + Clean bool + DistributionSet DistributionSet + Dry bool + GoVersion string + Name string + NameTemplate string + OutputDir string + ShowTargets bool + Verbose bool + type Cmd struct + Exec func(*flag.FlagSet) error + Init func(*flag.FlagSet) error + LongDescription string + Name string + Parse func(set *flag.FlagSet, args []string) error + ShortDescription string + type Commands []Cmd + type Distribution struct + BuildPath string + CgoSupported bool + FirstClass bool + GOARCH string + GOOS string + type DistributionSet []Distribution + func GetAllDistributions() (res DistributionSet, err error) + func GetBuildTargets(config BuildConfig) (res DistributionSet, err error) + func (d *DistributionSet) Set(val string) error + func (d DistributionSet) Copy() (res DistributionSet) + func (d DistributionSet) Difference(other DistributionSet) (res DistributionSet) + func (d DistributionSet) Has(val Distribution) bool + func (d DistributionSet) Only(systems ...string) (res DistributionSet) + func (d DistributionSet) OnlyArch(archs ...string) (res DistributionSet) + func (d DistributionSet) String() (res string) + func (d DistributionSet) Union(other DistributionSet) (res DistributionSet) + func (d DistributionSet) WithoutArch(archs ...string) (res DistributionSet) + type GoModule struct + GoVersion string + Name string + func ApplyModule(config *BuildConfig) (mod GoModule, err error) + func ParseMod(loc string) (mod GoModule, err error) + type SMap map[string][]string + func (m SMap) Copy() (res SMap) + func (m SMap) OnlyKeys(keys ...string) (res SMap) + func (m SMap) Union(other SMap) (res SMap) + func (m SMap) WithoutKeys(keys ...string) (res SMap) + func (m SMap) WithoutVals(vals ...string) (res SMap) + type StringSlice []string + func (s *StringSlice) Set(val string) error + func (s *StringSlice) String() string