tailfile

package
v0.11.2-0...-2856a30 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 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