tail

package
v0.0.0-...-9c0138c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(stdout io.Writer, args []string) error

Types

type Option

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

func NewFlagSet

func NewFlagSet() (*flag.FlagSet, *Option)

type Tailer

type Tailer struct {
	Bytes             string
	Follow            bool
	Lines             string
	Quiet             bool
	Verbose           bool
	SleepInterval     float64
	Retry             bool
	MaxUnchangedStats string
	LineDelim         byte
	Pid               string
}

func (*Tailer) FollowLoop

func (t *Tailer) FollowLoop(rs io.ReadSeeker, w io.Writer)

func (*Tailer) PrintBytes

func (t *Tailer) PrintBytes(rs io.ReadSeeker, w io.Writer) error

func (*Tailer) PrintLines

func (t *Tailer) PrintLines(rs io.ReadSeeker, w io.Writer) error

func (*Tailer) PrintTitle

func (t *Tailer) PrintTitle(w io.Writer, name string)

func (*Tailer) Run

func (t *Tailer) Run(rs io.ReadSeeker, w io.Writer, name string)

Jump to

Keyboard shortcuts

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