wc

package
v0.0.0-...-38a5715 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func LineCount

func LineCount(fileName string) (int, error)
Example
fmt.Println(LineCount("testdata/road.txt"))
fmt.Println(LineCount("testdata/aow.txt.gz"))
Output:

8 <nil>
6982 <nil>

Types

type LineCounter

type LineCounter int

func (*LineCounter) Write

func (lc *LineCounter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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