flag

package module
v3.8.11 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultStructTag  = "flag"
	ErrInvalidValue   = errors.New("invalid value specified")
	DefaultSliceDelim = ","
	DefaultMapDelim   = ","
)

Functions

func FlagEnv added in v3.8.8

func FlagEnv(n string) config.Option

FlagEnv set flag set usage func

func FlagErrorHandling added in v3.8.7

func FlagErrorHandling(eh flag.ErrorHandling) config.Option

FlagErrorHandling set flag set error handling

func FlagSet added in v3.8.7

func FlagSet(f *flag.FlagSet) config.Option

FlagSet set flag set name

func FlagSetName added in v3.8.7

func FlagSetName(n string) config.Option

FlagSetName set flag set name

func FlagUsage added in v3.8.7

func FlagUsage(fn func()) config.Option

FlagUsage set flag set usage func

func MapDelim

func MapDelim(s string) config.Option

MapDelim set the map delimeter

func NewConfig

func NewConfig(opts ...config.Option) config.Config

func SliceDelim

func SliceDelim(s string) config.Option

SliceDelim set the slice delimeter

func TimeFormat

func TimeFormat(s string) config.Option

TimeFormat set the time format

Types

This section is empty.

Jump to

Keyboard shortcuts

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