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.
- Host: GitHub
- URL: https://github.com/segmentio/go-prompt
- Owner: segmentio
- Archived: true
- Created: 2014-09-08T16:52:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T06:25:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-01T10:39:12.033Z (over 1 year ago)
- Language: Go
- Size: 9.77 KB
- Stars: 168
- Watchers: 44
- Forks: 42
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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