ioutil

package
v0.0.0-...-966265d Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatFiles

func ConcatFiles(w io.Writer, paths ...string) error

ConcatFiles writes all files given by paths to the io.Writer w.

Types

type RedirectableWriter

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

RedirectableWriter is a writer wrapping another underlying writer. You can change the underlying writer at runtime which is useful for logging.

func NewRedirectableWriter

func NewRedirectableWriter(w io.Writer) *RedirectableWriter

NewRedirectableWriter creates a RedirectableWriter with the underlying writer w

func (*RedirectableWriter) SetWriter

func (rw *RedirectableWriter) SetWriter(w io.Writer)

SetWriter changes the underlying writer to the new writer

func (*RedirectableWriter) Write

func (rw *RedirectableWriter) Write(p []byte) (int, error)

Write writes the byte slice using the underlying writer

Jump to

Keyboard shortcuts

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