Documentation ¶
Overview ¶
the arg package simplifies cli flags (arguments)
Example ¶
package main import ( "fmt" "simonwaldherr.de/go/golibs/arg" "time" ) func main() { arg.String("name", "default", "usage string", time.Second*5) arg.Parse() fmt.Println("\ninput:", arg.Get("name")) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.