Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTailLines = 20 DefaultPollInterval = 250 * time.Millisecond ChunkSize = 8192 )
Variables ¶
This section is empty.
Functions ¶
func ReadLastLines ¶
ReadLastLines reads the last N lines from a file without loading the entire file.
func StreamFile ¶
StreamFile reads a file line by line and formats each line, supporting --tail N.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.