# README
go-prompt
Terminal prompts for Go.
View the docs.
Example
package main
import "github.com/segmentio/go-prompt"
var langs = []string{
"c",
"c++",
"lua",
"go",
"js",
"ruby",
"python",
}
func main() {
i := prompt.Choose("What's your favorite language?", langs)
println("picked: " + langs[i])
}
License
MIT
# Functions
Choose prompts for a single selection from `list`, returning in the index.
Confirm continues prompting until the input is boolean-ish.
Password prompt.
Password prompt with mask.
String prompt.
String prompt (required).