Socket
Book a DemoInstallSign in
Socket

mz.attahri.com/code/lines

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mz.attahri.com/code/lines

Go Modules
Version
v0.2.1
Version published
Created
Source

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.

FAQs

Package last updated on 02 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts