wc

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wc

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

func New

func New() Wc

func (Wc) Bytes

func (w Wc) Bytes(b bool) Wc

func (Wc) Chars

func (w Wc) Chars(b bool) Wc

func (Wc) Files

func (w Wc) Files(files ...string) Wc

Files adds files into a list of files

func (Wc) FromArgs

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

FromArgs builds a WcFilter from standard argv except the command name (os.Argv[1:])

func (Wc) Lines

func (w Wc) Lines(lines bool) Wc

func (Wc) MaxLineLength

func (w Wc) MaxLineLength(b bool) Wc

func (Wc) Run

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

func (Wc) SetDebug

func (w Wc) SetDebug(debug bool) Wc

func (Wc) Words

func (w Wc) Words(b bool) Wc

Jump to

Keyboard shortcuts

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