helpers

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStartPosForLastNLines

func FindStartPosForLastNLines(filename string, n int) (int64, error)

FindStartPosForLastNLines finds the position in a file where the last N lines begin. It returns the byte offset from the start of the file and any error encountered. If n <= 0, it returns 0 (start of file). If the file has fewer lines than n, it returns 0 (start of file).

Types

This section is empty.

Jump to

Keyboard shortcuts

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