All Projects → segmentio → Go Prompt

segmentio / Go Prompt

Go terminal prompts.

Programming Languages

go
31211 projects - #10 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].