piper

package module
v0.0.0-...-b6a9cfe Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 3 Imported by: 1

README

go-piper

Build Status codecov

A small utility for use in CLI programs, to read piped-in input if it was supplied.

Usage

Lint, test:

make lint test

Example:

import "github.com/jasonfriedland/go-piper"

input, err := piper.Read()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read() (string, error)

Read gets input from stdin, and returns it as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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