You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Harshavardhana eb7c690ea9 Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
..
History.md Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
Readme.md Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
prompt.go Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago

Readme.md

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