Interactive CLI in Go (test)
Ask for a string input with AskForString
Ask for a 64 bit integer (int64) input with AskForInt
Ask for a bool input with AskForBool
- this method accepts all the standard true/false values handled by http://golang.org/pkg/strconv/#ParseBool
- this includes:
1
,t
, true,
0,
f, false
- this includes:
- additionally
yes
,y
,no
andn
are also accepted - every input handled in a case insensitive way, so
TrUe
will also returntrue