pflag

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv(main interface{}, envPrefix string, parseElsewhere func(main interface{}) error) error

LoadEnv calls LoadArgsEnv with args from the command line and the default flag set.

Types

type FlagSet

type FlagSet struct {
	*pflag.FlagSet
}

FlagSet is an extension to *pflag.FlagSet that satisfies FlagNamer

func (*FlagSet) Flags

func (f *FlagSet) Flags() (flags []string)

Flags returns a slice of flag names

Jump to

Keyboard shortcuts

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