rcv

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 6 Imported by: 1

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

GoDoc

Example

Here is an example usage:

var line string

rcv.Readlne(&dst)

fmt.Printf("LINE: %q\n", line)

Documentation

Overview

Package rcv provides tools for receiving input; including reading a line from the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Freadln

func Freadln(reader io.Reader, dst interface{}) (n int, err error)

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

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL