Releases: CreateLab/GLinq
Releases · CreateLab/GLinq
New methods
Version 1
Version 0.9.6
v0.9.6 fix lint
Version 0.9.5
v0.9.5 fix structs size
Version 0.9.4
v0.9.4 add size
Version 0.9.3
v0.9.3 add factory
Version 0.9.2
Merge remote-tracking branch 'origin/main'
Version 0.9.1
v0.9.1 add license
Version 0.9
# glinq v0.9.0
LINQ-like library for Go with lazy evaluation and fluent API.
## Features
- ✅ Lazy evaluation - operations execute only on materialization
- ✅ Type-safe generics (Go 1.21+)
- ✅ Fluent chainable API
- ✅ Zero dependencies
## Main Operations
**Filtering & Transform**
- `Where`, `Select`, `Map`, `Distinct`, `DistinctBy`
**Sorting**
- `OrderBy`, `OrderByDescending` (with custom comparator)
**Partitioning**
- `Take`, `Skip`, `Chunk`
**Set Operations**
- `Concat`, `Union`, `Intersect`, `Except` (+ `*By` versions)
**Aggregation**
- `Count`, `First`, `Last`, `Any`, `All`, `Min`, `Max`, `Aggregate`
**Map Support**
- `FromMap`, `ToMap`, `ToMapBy`, `Keys`, `Values`
## Example
```go
result := glinq.From([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}).
Where(func(x int) bool { return x > 5 }).
OrderBy(func(a, b int) int { return b - a }).
Take(3).
ToSlice()
// [10, 9, 8]