package
1.91.0
Repository: https://github.com/1f604/util.git
Documentation: pkg.go.dev

# Functions

Do not call this method on a running server as it may crash the server Even if you call it on your own log file, if your log file was partly written it can still crash your program But the Rotate function isn't affected because it only looks for newlines.
No description provided by the author
This function returns the first line in the file It will return an error if the file is empty or contains no newlines Make sure every read is preceded by a seek.
This function returns the last non-empty line in the file It will return an error if there's only one line in the file, or if the file is empty, or if the file only contains newlines Make sure every read is preceded by a seek.
No description provided by the author