A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/moby/moby/v2@v2.0.0-20250814210528-a34c4d9bb99f/pkg/tailfile below:

tailfile package - github.com/moby/moby/v2/pkg/tailfile - Go Packages

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

This section is empty.

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.

NewTailReader scopes the passed in reader to just the last N lines passed in

NewTailReaderWithDelimiter scopes the passed in reader to just the last N lines passed in In this case a "line" is defined by the passed in delimiter.

Delimiter lengths should be generally small, no more than 12 bytes

TailFile returns last n lines of the passed in file.

SizeReaderAt is an interface used to get a ReaderAt as well as the size of the underlying reader. Note that the size of the underlying reader should not change when using this interface.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4