mirror of https://github.com/minio/minio.git
406 B
406 B
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