logutil

package
v0.9.30 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAppendFile

func OpenAppendFile(path string) (*os.File, error)

Types

type TailWriter added in v0.9.13

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

TailWriter keeps only the last maxBytes of data written to it. It is safe for concurrent use by subprocess stdout/stderr writers.

func NewTailWriter added in v0.9.13

func NewTailWriter(maxBytes int) *TailWriter

func (*TailWriter) String added in v0.9.13

func (w *TailWriter) String() string

func (*TailWriter) Write added in v0.9.13

func (w *TailWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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