Documentation
¶
Index ¶
- Constants
- func PollCounts(name string, counts *[]uint64, interval time.Duration, done chan bool)
- func PrintCounts(counts *[]uint64, name string, cr bool, lf bool)
- func ProcessFiles(config *Config)
- func Run(version string, date string)
- func ScanCount(scanner *bufio.Scanner, count *uint64, total *uint64)
- func ScanMaxLength(scanner *bufio.Scanner, count *uint64, total *uint64)
- type Config
- type Processor
- type ScanFunc
Constants ¶
View Source
const ( // CarriageReturn means \r CarriageReturn byte = 13 // LineFeed means \n LineFeed byte = 10 // Space really means space Space byte = 32 )
Variables ¶
This section is empty.
Functions ¶
func PollCounts ¶
PollCounts periodically writes counts to stdout
func PrintCounts ¶
PrintCounts writes formatted counts to stdout
func ProcessFiles ¶
func ProcessFiles(config *Config)
ProcessFiles processes files as required by the configuration
Types ¶
type Config ¶
type Config struct { Lines bool Words bool Chars bool Bytes bool MaxLineLength bool Files0From string Interval time.Duration Help bool Version bool Files []string // contains filtered or unexported fields }
Config represents a configuration
func (*Config) FilesChan ¶ added in v0.4.0
FilesChan creates the channel sending the filenames in the configuration
func (*Config) Processors ¶ added in v0.4.0
Processors creates the processors enabled by the configuration
Click to show internal directories.
Click to hide internal directories.