reader

package module
v0.0.0-...-61ce77b Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2013 License: BSD-2-Clause Imports: 6 Imported by: 0

README

reader

Open anything as an io.Reader

Documentation

Overview

Package reader provides io.ReadClosers for anything with a URI. The goal of this package is to enable command line applications to consume input from a wide variety of sources without having to implement the details of the specific input source.

Currently supported schemes are:

  • stdin http:// http 2xx responses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(uri string) (io.ReadCloser, error)

Open returns an io.ReadCloser representing the contents of the source specified by a uri.

Types

This section is empty.

Directories

Path Synopsis
examples
cat
cat consumes the input from a reader specified on the command line and outputs it to stdout.
cat consumes the input from a reader specified on the command line and outputs it to stdout.

Jump to

Keyboard shortcuts

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