Skip to content

riteshpradhan/go-prompt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

forked from segmentio/go-prompt

go-prompt

Terminal prompts for Go.

View the docs.

How to use:

package main

import "github.com/riteshpradhan/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])
}

Functions:

  • String
  • StringRequired
  • StringDefault
  • Stringln
  • Integer
  • IntegerRequired
  • Confirm
  • Choose
  • ChooseInterface
  • Password
  • PasswordMasked

About

Go terminal prompts.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 100.0%