Discover Packages
github.com/slub/labe/go/ckit
xflag
package
Version:
v0.0.0-...-24bf5da
Opens a new window with list of versions in this module.
Published: Jul 28, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package xflag add an additional flag type Array for repeated string flags.
var f xflag.Array
flag.Var(&f, "r", "some repeatable flag")
flag.Parse() // $ command -r a -r b -r c
for _, v := range f { ... } // []string{"a", "b", "c"}
ArrayFlags allows to store lists of flag values.
Date can be used to parse command line args into dates.
Set parses a value into a date, relatively flexible due to
araddon/dateparse, 2014-04-26 will work, but oct. 7, 1970, too.
String returns a formatted date.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.