Skip to content

mzattahri/lines

Repository files navigation

GoDoc reference Lint Test

Lines

Package lines provides iterator-based tools to read, search, and modify lines in text files and streams.

go get mz.attahri.com/code/lines

Example

// Count TODO comments in a file
count, err := lines.CountFunc(lines.All(r), func(line string) bool {
    return strings.Contains(line, "TODO")
})

See godoc for complete documentation and examples.

Contributions

Contributions are welcome via Pull Requests.

About

Go library to manipulate lines in a text file.

Resources

License

Stars

Watchers

Forks