Top 4.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/fredbi/gflag
Package gflag exposes generic types to deal with flags. Supported types are: all primitive golang types (e.g. int, uint, float64, complex128 ...) as well as a few commonly used types, which supported by pflag: time.Duration, net.IP, net.IPNet, net.IPMask, plus time.Time. The new types can be readily used as extensions to the github.com/spf13/flag package. All types currently provided by pflag can be obtained from gflag using generic types. gflag provides a more consistent interface across types, and can build single-valued flags, slice of flags as well as maps of flags for all underlying types. Notice that the []byte type is considered single-valued and that we don't support []uint8 as a slice of unsigned integer values (because []byte and []uint8 are aliases). There are a few attention points, though. Take a look at the examples to deal with these. Note to users of the github.com/spf13/viper package: Consuming flags from viper remain still possible. All pflag types currently supported by viper will work seamlessly with their gflag counterpart. Other types will be converted to a their string representation by viper.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/fredbi/gflag
License: Apache-2.0
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/fredbi
Dependent packages: 5
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago