tail

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tail provides support for outputing the last N lines of a ReadSeeker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tail

type Tail struct {
	// contains filtered or unexported fields
}

Tail prints the last N lines.

func New

func New(r io.ReadSeeker, n int) *Tail

New returns an instance of Tail.

func (*Tail) WriteTo

func (t *Tail) WriteTo(w io.Writer) (n int64, err error)

WriteTo writes last N lines to the Writer.

Jump to

Keyboard shortcuts

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