tail

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tail provides utilities to tail lines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTailLineStartIndex

func FindTailLineStartIndex(f io.ReadSeeker, n int64) (int64, error)

FindTailLineStartIndex returns the start of last nth line. * If n < 0, return the beginning of the file. * If n >= 0, return the beginning of last nth line. Notice that if the last line is incomplete (no end-of-line), it will not be counted as one line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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