Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTailLines = 10
DefaultTailLines is the default number of lines for tail
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TailOptions ¶
type TailOptions struct {
Lines int // -n: number of lines to print
Bytes int // -c: number of bytes to print
Follow bool // -f: output appended data as file grows
Quiet bool // -q: never print headers
Verbose bool // -v: always print headers
Sleep time.Duration // --sleep-interval: sleep interval for -f
JSON bool // --json: output as JSON
}
TailOptions configures the tail command behavior
type TailResult ¶
TailResult represents tail output for JSON
Click to show internal directories.
Click to hide internal directories.