golang

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreBuildHook  = "pre-build"
	PostBuildHook = "post-build"
)

Variables

View Source
var RequiredGoEnvKeys = []string{
	"GO111MODULE",
	"GOFLAGS",
	"GOINSECURE",
	"GOMOD",
	"GOMODCACHE",
	"GONOPROXY",
	"GONOSUMDB",
	"GOPATH",
	"GOPROXY",
	"GOROOT",
	"GOSUMDB",
}

Functions

func NewFormatSubcommand

func NewFormatSubcommand() *cobra.Command

func NewGoInstallCommand

func NewGoInstallCommand() *cobra.Command

func NewGoUnittestCommand

func NewGoUnittestCommand() *cobra.Command

func NewGobuildCommand

func NewGobuildCommand() *cobra.Command

func NewModReplaceCommand

func NewModReplaceCommand() *cobra.Command

func NewModRequireCommand

func NewModRequireCommand() *cobra.Command

func NewModTidyCommand

func NewModTidyCommand() *cobra.Command

func NewModUpdateCommand

func NewModUpdateCommand() *cobra.Command

Types

type FormatCommand added in v0.3.0

type FormatCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*FormatCommand) BindFlags added in v0.3.0

func (c *FormatCommand) BindFlags(fs *pflag.FlagSet)

func (*FormatCommand) Complete added in v0.3.0

func (c *FormatCommand) Complete(cmd *cobra.Command, args []string) error

func (*FormatCommand) Name added in v0.3.0

func (c *FormatCommand) Name() string

func (*FormatCommand) Run added in v0.3.0

func (c *FormatCommand) Run(cmd *cobra.Command, args []string) error

func (*FormatCommand) Validate added in v0.3.0

func (c *FormatCommand) Validate() error

type GobuildCommand added in v0.3.0

type GobuildCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*GobuildCommand) BindFlags added in v0.3.0

func (c *GobuildCommand) BindFlags(fs *pflag.FlagSet)

func (*GobuildCommand) Complete added in v0.3.0

func (c *GobuildCommand) Complete(cmd *cobra.Command, args []string) error

func (*GobuildCommand) Name added in v0.3.0

func (c *GobuildCommand) Name() string

func (*GobuildCommand) Run added in v0.3.0

func (c *GobuildCommand) Run(cmd *cobra.Command, args []string) error

func (*GobuildCommand) Validate added in v0.3.0

func (c *GobuildCommand) Validate() error

type GoinstallCommand added in v0.3.0

type GoinstallCommand struct {
	*GobuildCommand
}

func (*GoinstallCommand) Name added in v0.3.0

func (c *GoinstallCommand) Name() string

func (*GoinstallCommand) Run added in v0.3.0

func (c *GoinstallCommand) Run(cmd *cobra.Command, args []string) error

type GounittestCommand added in v0.3.0

type GounittestCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*GounittestCommand) BindFlags added in v0.3.0

func (c *GounittestCommand) BindFlags(fs *pflag.FlagSet)

func (*GounittestCommand) Complete added in v0.3.0

func (c *GounittestCommand) Complete(cmd *cobra.Command, args []string) error

func (*GounittestCommand) Name added in v0.3.0

func (c *GounittestCommand) Name() string

func (*GounittestCommand) Run added in v0.3.0

func (c *GounittestCommand) Run(cmd *cobra.Command, args []string) error

func (*GounittestCommand) Validate added in v0.3.0

func (c *GounittestCommand) Validate() error

type HookPhase

type HookPhase string

type ModReplaceCommand added in v0.3.0

type ModReplaceCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*ModReplaceCommand) BindFlags added in v0.3.0

func (c *ModReplaceCommand) BindFlags(fs *pflag.FlagSet)

func (*ModReplaceCommand) Complete added in v0.3.0

func (c *ModReplaceCommand) Complete(cmd *cobra.Command, args []string) error

func (*ModReplaceCommand) Name added in v0.3.0

func (c *ModReplaceCommand) Name() string

func (*ModReplaceCommand) Run added in v0.3.0

func (c *ModReplaceCommand) Run(cmd *cobra.Command, args []string) error

func (*ModReplaceCommand) Validate added in v0.3.0

func (c *ModReplaceCommand) Validate() error

type ModRequireCommand added in v0.3.0

type ModRequireCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*ModRequireCommand) BindFlags added in v0.3.0

func (c *ModRequireCommand) BindFlags(fs *pflag.FlagSet)

func (*ModRequireCommand) Complete added in v0.3.0

func (c *ModRequireCommand) Complete(cmd *cobra.Command, args []string) error

func (*ModRequireCommand) Name added in v0.3.0

func (c *ModRequireCommand) Name() string

func (*ModRequireCommand) Run added in v0.3.0

func (c *ModRequireCommand) Run(cmd *cobra.Command, args []string) error

func (*ModRequireCommand) Validate added in v0.3.0

func (c *ModRequireCommand) Validate() error

type ModTidyCommand added in v0.3.0

type ModTidyCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*ModTidyCommand) BindFlags added in v0.3.0

func (c *ModTidyCommand) BindFlags(fs *pflag.FlagSet)

func (*ModTidyCommand) Complete added in v0.3.0

func (c *ModTidyCommand) Complete(cmd *cobra.Command, args []string) error

func (*ModTidyCommand) Name added in v0.3.0

func (c *ModTidyCommand) Name() string

func (*ModTidyCommand) Run added in v0.3.0

func (c *ModTidyCommand) Run(cmd *cobra.Command, args []string) error

func (*ModTidyCommand) Validate added in v0.3.0

func (c *ModTidyCommand) Validate() error

type ModUpdateCommand added in v0.3.0

type ModUpdateCommand struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*ModUpdateCommand) BindFlags added in v0.3.0

func (c *ModUpdateCommand) BindFlags(fs *pflag.FlagSet)

func (*ModUpdateCommand) Complete added in v0.3.0

func (c *ModUpdateCommand) Complete(cmd *cobra.Command, args []string) error

func (*ModUpdateCommand) Name added in v0.3.0

func (c *ModUpdateCommand) Name() string

func (*ModUpdateCommand) Run added in v0.3.0

func (c *ModUpdateCommand) Run(cmd *cobra.Command, args []string) error

func (*ModUpdateCommand) Validate added in v0.3.0

func (c *ModUpdateCommand) Validate() error

Jump to

Keyboard shortcuts

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