An open API service indexing awesome lists of open source software.

https://github.com/segmentio/go-prompt

Go terminal prompts.
https://github.com/segmentio/go-prompt

Last synced: about 1 year ago
JSON representation

Go terminal prompts.

Awesome Lists containing this project

README

          

# go-prompt

Terminal prompts for Go.

View the [docs](http://godoc.org/pkg/github.com/segmentio/go-prompt).

## Example

```go
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