Registry / cli / tcnksm-go-input

tcnksm-go-input

JSON →
library0.0.0-20180404061846-548a7d7a8ee8gogounverified

Package input reads user input at the console in Go.

go get github.com/tcnksm/go-input
INSTALL
IMPORT
SIG · TCNKSM-GO-INPUT
T
tcnksm-go-input
cligov0.0.0-20180404061846-548a7d7a8ee8
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.

input
github.com/tcnksm/go-input

Prompts the user for input and prints a greeting.

package main import ( "fmt" "github.com/tcnksm/go-input" ) func main() { ui := &input.UI{} name, err := ui.Ask("What is your name?", &input.Options{}) if err != nil { panic(err) } fmt.Printf("Hello, %s!\n", name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180404061846-548a7d7a8ee8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
tcnksm-go-input — go get tcnksm-go-input · libregistry