minio/vendor/github.com/segmentio/go-prompt
Harshavardhana eb7c690ea9 Support in-place upgrades of new minio binary and releases. (#4961)
This PR allows 'minio update' to not only shows update banner
but also allows for in-place upgrades.

Updates are done safely by validating the downloaded
sha256 of the binary.

Fixes #4781
2017-12-15 12:33:42 -08:00
..
History.md Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
prompt.go Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00
Readme.md Support in-place upgrades of new minio binary and releases. (#4961) 2017-12-15 12:33:42 -08:00

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