os

package
v0.0.0-...-0a03743 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(filename string) (string, error)

ReadFile reads the file named by filename and returns the contents as string. A successful call returns err == nil, not err == EOF. Because ReadFile reads the whole file, it does not treat an EOF from Read as an error to be reported.

func ReadFromStdIn

func ReadFromStdIn() string

ReadFromStdIn reads text from stdin

func StdInAvailable

func StdInAvailable() bool

StdInAvailable checks if there's data in stdin

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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