Registry / cli / alecaivazis-survey-v1

alecaivazis-survey-v1

JSON →
library1.8.8gogounverified

A library for building interactive prompts and surveys in the terminal.

go get gopkg.in/AlecAivazis/survey.v1
INSTALL
IMPORT
SIG · ALECAIVAZIS-SURVEY
A
alecaivazis-survey-v1
cligov1.8.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

survey
gopkg.in/AlecAivazis/survey.v1

Ask a single input question and print the response.

package main import ( "fmt" "gopkg.in/AlecAivazis/survey.v1" ) func main() { name := "" prompt := &survey.Input{Message: "What is your name?"} survey.AskOne(prompt, &name) fmt.Printf("Hello, %s!\n", name) }
Debug
Known issues
gotchaVersion 1.x is stable but consider using v2 for new projects.
fix
Use `go get gopkg.in/AlecAivazis/survey.v1` for v1; for v2 use `github.com/AlecAivazis/survey/v2`.
affects: >=1.0.0
Upgrade
Version history
1.8.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
28
OpenAI (training)
1
Resources
alecaivazis-survey-v1 — go get alecaivazis-survey-v1 · libregistry