util

package
v0.0.0-...-e7133ac Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithError

func AbortWithError(err error)

AbortWithError terminates the application with the specified error message.

func Copy

func Copy(src, dest string) error

Copy copies the content of the source file to the destination file.

func OpenInput

func OpenInput(filename string) (io.Reader, error)

OpenInput attempts to open the specified file for input, interpreting "-" as STDIN.

func OpenOutput

func OpenOutput(filename string) (io.Writer, error)

OpenOutput attempts to open the specified file for output, interpreting "-" as STDOUT.

func Output

func Output(msg string)

Output writes the specified message to STDERR with newline appended.

Types

This section is empty.

Jump to

Keyboard shortcuts

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