iox

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndentFileWriter added in v1.4.0

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

IndentFileWriter adds configured indent for messages starting with configured prefix.

func NewIndentFileWriter added in v1.4.0

func NewIndentFileWriter(w *os.File, triggerPrefix string, indent int) *IndentFileWriter

NewIndentFileWriter returns a new IndentFileWriter instance.

func NewIndentStdoutWriter

func NewIndentStdoutWriter(triggerPrefix string, indent int) *IndentFileWriter

NewIndentStdoutWriter returns a new IndentFileWriter instance.

func (*IndentFileWriter) Fd added in v1.4.0

func (s *IndentFileWriter) Fd() uintptr

Fd returns the integer Unix file descriptor referencing the open file.

func (*IndentFileWriter) Write added in v1.4.0

func (s *IndentFileWriter) Write(p []byte) (n int, err error)

Write writes len(b) bytes from b to a given os.File.

Jump to

Keyboard shortcuts

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