output

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose = false

Functions

func Info

func Info(format string, args ...interface{})

func Require

func Require(predicate bool, message string, args ...interface{})

Types

type OsLike

type OsLike interface {
	Create(name string) (io.WriteCloser, error)
	Open(name string) (io.ReadCloser, error)
	MkdirAll(path string, perm os.FileMode) error
}
var Os OsLike = stdOs(0)

type Output

type Output struct {
	Dirs, Name string
	Derived    bool // no stdout when true
	Fallback   io.Writer
}

func NewOutput

func NewOutput(path string) Output

func (Output) Derive added in v0.39.0

func (o Output) Derive(extn string) Output

func (Output) Path

func (o Output) Path() string

func (Output) Pkg

func (o Output) Pkg() string

func (Output) ReadTo added in v0.41.0

func (o Output) ReadTo(buf io.Writer) (err error)

func (Output) Write

func (o Output) Write(content io.Reader) (err error)

Jump to

Keyboard shortcuts

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