Help us shape the future of Go! Take the 2026 Go Developer Survey

flags

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindEnv added in v1.3.1

func BindEnv(fs *flag.FlagSet, flagName string)

BindEnv re-exports rootflags.BindEnv so pro subcommands can wire env vars through their existing local `flags` import alias.

Types

type GlobalFlags

type GlobalFlags struct {
	*rootflags.GlobalFlags

	Config string
}

GlobalFlags is the flags that contains the global flags.

func SetGlobalFlags

func SetGlobalFlags(flags *flag.FlagSet) *GlobalFlags

SetGlobalFlags applies the global flags.

Jump to

Keyboard shortcuts

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