iox

package
v1.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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 IndentStdoutWriter

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

IndentStdoutWriter adds configured indent for messages starting with configured prefix.

func NewIndentStdoutWriter

func NewIndentStdoutWriter(triggerPrefix string, indent int) *IndentStdoutWriter

NewIndentStdoutWriter returns a new IndentStdoutWriter instance.

func (*IndentStdoutWriter) Fd

func (s *IndentStdoutWriter) Fd() uintptr

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

func (*IndentStdoutWriter) Write

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

Write writes len(b) bytes from b to os.Stdout.

Jump to

Keyboard shortcuts

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