rschmukler / go-prompt

Helper library for getting user input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-prompt

Prompt for user data, quickly

Available Methods

String(prompt string) string

Get a string

StringOrKeep(prompt string, val string) string

Get a string. If nothing is entered, return val instead

Password(prompt string) string

Get a password (string). Don't echo the output

PasswordOrKeep(prompt string, val string) string

Get a string. If nothing is entered, return val instead

About

Helper library for getting user input