# README
Confo
Golang command line tool with environment supproted, Command line arguments have higher priority than environment variables.
Examples
logFile = confo.NewString("log.file", "", "the log file")
logLevel = confo.NewBool("log.level", false, "the log level, default is bool")
serverHost = confo.NewString("server.addr", ":7070", "the address http will serve on")
serverPort = confo.NewInt("server.port", 8080, "the tcp port will listen on")
secs = confo.NewDuration("secs", "30s", "the duration flag, 30 secodns")
secs2 = confo.NewDuration("days", "30d", "the duration flag, 30 days")
secs3 = confo.NewDuration("weeks", "2w", "the duration flag, 2 weeks")
bytes = confo.NewBytes("bytes", 128, "the bytes flag, 128 Byte")
kbs = confo.NewBytes("kbytes", 64, "the bytes flag, 64KB")
mbs = confo.NewBytes("mbytes", 64, "the bytes flag, 64KB")
gbs = confo.NewBytes("gbytes", 64, "the bytes flag, 64KB")
strs = confo.NewArrayString("array.str", "the string array flag, default is empty")
ints = confo.NewArrayInt("array.int", "the string array flag, default is empty")
# Packages
No description provided by the author
# Functions
DurationValue returns the duration in milliseconds for the given s and the given step.
IsSecretFlag returns true of s contains flag name with secret value, which shouldn't be exposed.
NewArrayBool returns new ArrayBool with the given name and description.
NewArrayBytes returns new ArrayBytes with the given name and description.
NewArrayDuration returns new ArrayDuration with the given name and description.
NewArrayInt returns new ArrayInt with the given name and description.
NewArrayString returns new ArrayString with the given name and description.
NewBytes returns new `bytes` flag with the given name, defaultValue and description.
NewDuration returns new `duration` flag with the given name, defaultValue and description.
Parse parses environment vars and command-line flags.
ParseFlagSet parses the given args into the given fs.
PositiveDurationValue returns positive duration in milliseconds for the given s and the given step.
RegisterSecretFlag registers flagName as secret.
Usage prints s and optional description for all the flags if -h or -help flag is passed to the app.
Visit all the flag name and values.
WriteFlags writes all the explicitly set flags to w.
# Type aliases
ArrayBool is a flag that holds an array of booleans values.
ArrayBytes is flag that holds an array of Bytes.
ArrayDuration is a flag that holds an array of time.Duration values.
ArrayInt is flag that holds an array of ints.
ArrayString is a flag that holds an array of strings.