Documentation ¶ Index ¶ type Head func New() Head func (c Head) Files(f ...string) Head func (c Head) FromArgs(argv []string) (Head, error) func (c Head) Lines(lines int) Head func (c Head) Run(ctx context.Context, stdio unix.StandardIO) error func (c Head) SetDebug(debug bool) Head func (c Head) ZeroTerminated(zeroTerminated bool) Head Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Head ¶ 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 Source Files ¶ View all Source files head.go Click to show internal directories. Click to hide internal directories.