You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use the mutiple choice option, I get the following panic. Please let me know what other information would help assist in getting this fixed moving forward, I will also look into the code to see if there is anything I can do to fix it and submit a PR if I figure something out.
func Test(c *ishell.Context) {
choice := c.MultiChoice([]string{
"Golangers",
"Go programmers",
"Gophers",
"Goers",
}, "What are Go programmers called ?")
if choice == 2 {
c.Println("You got it!")
} else {
c.Println("Sorry, you're wrong.")
}
}
When attempting to use the mutiple choice option, I get the following panic. Please let me know what other information would help assist in getting this fixed moving forward, I will also look into the code to see if there is anything I can do to fix it and submit a PR if I figure something out.
The text was updated successfully, but these errors were encountered: