writer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

type FileWriter struct {
	// contains filtered or unexported fields
}

FileWriter is a writer implementation

func (*FileWriter) Write

func (fileWriter *FileWriter) Write(output string) error

Write implementation

type StdoutWriter

type StdoutWriter struct {
}

StdoutWriter is a Writer implementation

func (*StdoutWriter) Write

func (stdoutWriter *StdoutWriter) Write(output string) error

Write implementation

type Writer

type Writer interface {
	Write(string) error
}

Writer is an interface for displaying output

func CreateWriter

func CreateWriter(filename string) Writer

CreateWriter creates a Writer that writes to a file with given filename

Jump to

Keyboard shortcuts

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