tailfile

package
v0.1.3-0...-f63d1a6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 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