Registry / utility / ahmetb-go-linq-v3

ahmetb-go-linq-v3

JSON →
library3.2.0gogounverified

Package linq provides methods for querying and manipulating slices, arrays, maps, strings, channels and collections.

go get github.com/ahmetb/go-linq/v3
INSTALL
IMPORT
SIG · AHMETB-GO-LINQ-V3
A
ahmetb-go-linq-v3
utilitygov3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

linq
github.com/ahmetb/go-linq/v3

Filters a slice to only even numbers using LINQ-style query.

package main import ( "fmt" "github.com/ahmetb/go-linq/v3" ) func main() { numbers := []int{1, 2, 3, 4, 5} var evens []int linq.From(numbers).Where(func(i int) bool { return i%2 == 0 }).ToSlice(&evens) fmt.Println(evens) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
ahmetb-go-linq-v3 — go get ahmetb-go-linq-v3 · libregistry