...

Package arg

import "simonwaldherr.de/go/golibs/arg"
Overview
Index
Examples
Subdirectories

Overview ▾

the arg package simplifies cli flags (arguments)

Example

Code:

arg.String("name", "default", "usage string", time.Second*5)
arg.Parse()
fmt.Println("\ninput:", arg.Get("name"))

func Dump

func Dump() string

func Get

func Get(name string) interface{}

func Parse

func Parse()

func String

func String(name, defaultValue, usage string, timeout time.Duration)

func StringArg

func StringArg(name, defaultValue, usage string, timeout time.Duration)

Subdirectories

Name Synopsis
..
demo