goinp

command module
v0.0.0-...-054ed78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 3 Imported by: 0

README

go-interactive-cli

Interactive CLI in Go (test)

Ask for an input from the user with the AskForXyz methods.

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
  • additionally yes, y, no and n are also accepted
  • every input handled in a case insensitive way, so TrUe will also return true

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL