build

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:                "build [--version|-v version] [--ldflags additional_ldflags] -- [other 'go build' arguments]",
		Short:              "utilities to help build project with proper ldflags and mods",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
		RunE:               RunBuild,
	}
	Args = GeneralArguments{
		Version: "Unknown",
	}
)

Functions

func RunBuild

func RunBuild(cmd *cobra.Command, args []string) error

Types

type GeneralArguments

type GeneralArguments struct {
	Version string   `flag:"version,v" desc:"Version value to be included as 'version' in build info"`
	Modules []string `` /* 184-byte string literal not displayed */
	LdFlags string   `flag:"ldflags" desc:"Additional ldflags passed to \"go build\""`
}

Jump to

Keyboard shortcuts

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