flags

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidLogLevels = []string{"trace", "debug", "info", "warn", "error", "fatal", "panic"}

matches zerolog log levels

Functions

This section is empty.

Types

type EnumValue

type EnumValue struct {
	Valid   []string
	Default *string
	// contains filtered or unexported fields
}

func (*EnumValue) Get

func (v *EnumValue) Get() any

func (*EnumValue) Set

func (v *EnumValue) Set(val string) error

func (*EnumValue) String

func (v *EnumValue) String() string

type FlagSet added in v0.0.16

type FlagSet struct{ *flag.FlagSet }

func (*FlagSet) LoadUnsetFromEnv added in v0.0.16

func (fs *FlagSet) LoadUnsetFromEnv() error

func (*FlagSet) LoadUnsetFromFile added in v0.0.18

func (fs *FlagSet) LoadUnsetFromFile(filename string) error

func (*FlagSet) LoadUnsetFromJSONFile added in v0.0.16

func (fs *FlagSet) LoadUnsetFromJSONFile(filename string) error

func (*FlagSet) LoadUnsetFromMap added in v0.0.16

func (fs *FlagSet) LoadUnsetFromMap(inputs map[string]any) error

func (*FlagSet) LoadUnsetFromYAMLFile added in v0.0.16

func (fs *FlagSet) LoadUnsetFromYAMLFile(filename string) error

func (*FlagSet) Parse added in v0.0.16

func (fs *FlagSet) Parse(arguments []string) error

func (*FlagSet) ParseArgs added in v0.0.16

func (fs *FlagSet) ParseArgs()

func (*FlagSet) UnsetFlags added in v0.0.16

func (fs *FlagSet) UnsetFlags() []*flag.Flag

type LogLevelValue

type LogLevelValue struct {
	Default *string
	// contains filtered or unexported fields
}

func (*LogLevelValue) Get

func (v *LogLevelValue) Get() any

func (*LogLevelValue) Set

func (v *LogLevelValue) Set(val string) error

func (*LogLevelValue) String

func (v *LogLevelValue) String() string

Jump to

Keyboard shortcuts

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