tailfile

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tailfile provides helper functions to read the nth lines of any ReadSeeker.

Index

Constants

This section is empty.

Variables

View Source
var ErrNonPositiveLinesNumber = errors.New("The number of lines to extract from the file must be positive")

ErrNonPositiveLinesNumber is an error returned if the lines number was negative.

Functions

func TailFile

func TailFile(f io.ReadSeeker, n int) ([][]byte, error)

TailFile returns last n lines of reader f (could be a fil).

Types

This section is empty.

Jump to

Keyboard shortcuts

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