Interactive terminal inputs.
selection1, _ := prompt.Select("Choose one option", prompt.Options{
{"1", "One"},
{"2", "Two"},
{"3", "Three"},
})
fmt.Println("Selection:", selection1)
selection, _ := prompt.MultiSelect("Choose multiple options", prompt.Options{
{"1", "One"},
{"2", "Two"},
{"3", "Three"},
})
fmt.Println("Selection:", selection)
selection, _ := prompt.Confirm("Do you want to go on?")
fmt.Println("Selection:", selection)
selection, _ := prompt.Text("Write single line text", "")
fmt.Println("Selection:", selection)
selection, _ := prompt.MultiLineText("Write multiple line text", "")
fmt.Println("Selection:\n" + selection)