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.