package tailfile
import "github.com/docker/cli/components/engine/pkg/tailfile"
Package tailfile provides helper functions to read the nth lines of any ReadSeeker.
Index ¶
Variables ¶
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).
Source Files ¶
- Version
- v17.10.0-ce-rc1+incompatible
- Published
- Oct 4, 2017
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 27 minutes ago –
Tools for package owners.