writer

package
v0.5.665 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdOutStr string = "stdout"
	StdErrStr string = "stderr"
)

Variables

This section is empty.

Functions

func GetDecoratedOutputWriter

func GetDecoratedOutputWriter(filename string, cd *color.Driver, overrideColor ...color.Attribute) (io.Writer, error)

func GetOutputWriter

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

Types

type StdStreamWriter

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

func (*StdStreamWriter) Write

func (ssw *StdStreamWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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