Documentation
¶
Index ¶
- Constants
- Variables
- func NewFormatSubcommand() *cobra.Command
- func NewGoInstallCommand() *cobra.Command
- func NewGoUnittestCommand() *cobra.Command
- func NewGobuildCommand() *cobra.Command
- func NewModReplaceCommand() *cobra.Command
- func NewModRequireCommand() *cobra.Command
- func NewModTidyCommand() *cobra.Command
- func NewModUpdateCommand() *cobra.Command
- type FormatCommand
- type GobuildCommand
- type GoinstallCommand
- type GounittestCommand
- type HookPhase
- type ModReplaceCommand
- type ModRequireCommand
- type ModTidyCommand
- type ModUpdateCommand
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 NewGoInstallCommand ¶
func NewGoUnittestCommand ¶
func NewGobuildCommand ¶
func NewModReplaceCommand ¶
func NewModRequireCommand ¶
func NewModTidyCommand ¶
func NewModUpdateCommand ¶
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
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 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
Click to show internal directories.
Click to hide internal directories.