package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 6, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
go-rcv
Package rcv provides tools for receiving input; including reading a line from the CLI.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-rcv

Example
Here is an example usage:
var line string
rcv.Readlne(&dst)
fmt.Printf("LINE: %q\n", line)
Documentation
¶
Package rcv provides tools for receiving input; including reading a line from the CLI.
Readln reads in a line from ‘reader’ and puts it at ‘dst’.
rcv.Freadln() does what you probably thought fmt.Fscanln() should do (but doesn't).
func Readln(dst interface{}) (n int, err error)
Readln reads in a line from os.Stdin and puts it at ‘dst’.
rcv.Readln() does what you probably thought fmt.Scanln() should do (but doesn't).
Here is an example:
var line string
rcv.Readlne(&dst)
fmt.Printf("LINE: %q\n", line)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.