head

package
v0.0.0-...-d26976d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func New

func New() Head

func (Head) Files

func (c Head) Files(f ...string) Head

Files are input files, where - denotes stdin

func (Head) FromArgs

func (c Head) FromArgs(argv []string) (Head, error)

func (Head) Lines

func (c Head) Lines(lines int) Head

func (Head) Run

func (c Head) Run(ctx context.Context, stdio unix.StandardIO) error

func (Head) SetDebug

func (c Head) SetDebug(debug bool) Head

func (Head) ZeroTerminated

func (c Head) ZeroTerminated(zeroTerminated bool) Head

Jump to

Keyboard shortcuts

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