1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Source: golang-github-tcnksm-go-input
Section: devel
Priority: optional
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Alexandre Viau <aviau@debian.org>
Build-Depends: debhelper (>= 11),
dh-golang,
golang-any,
golang-golang-x-crypto-dev
Standards-Version: 4.2.1
Homepage: https://github.com/tcnksm/go-input
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-tcnksm-go-input
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-tcnksm-go-input.git
XS-Go-Import-Path: github.com/tcnksm/go-input
Testsuite: autopkgtest-pkg-go
Package: golang-github-tcnksm-go-input-dev
Architecture: all
Depends: ${misc:Depends},
golang-golang-x-crypto-dev
Description: Go package for ideal tty prompt
go-input is a Go package for reading user input in console.
.
Here is the some good points compared with other/similar packages. It
can handle SIGINT (Ctrl+C) while reading input and returns error. It
allows one to change IO interface as io.Writer and io.Reader so it's
easy to test of your go program with this package (This package is also
well-tested!). It also supports raw mode input (reading input without
prompting) for multiple platform (Darwin, Linux and Windows). Not only
this it allows one to prompt complex input via Option struct.
|