pflag

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 3 Imported by: 0

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

Source Files

Jump to

Keyboard shortcuts

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