Re:Fun with Go Iterators
by pdimitar on Thursday October 10, 2024 @09:16AM
(#41798487)
Might be interesting to make a library that competes with https://github.com/samber/lo?
[ Parent
| on HN ]
It's not interesting. Boring people did this a million times, the result is always the same: just use for loops.
Back when the Go team announced generics, I had a go (pun intended) at it: https://github.com/gtramontina/go-extlib -- might resurrect it one day. `lo` is pretty comprehensive though.
Re:Fun with Go Iterators
by mihaitodor on Thursday October 10, 2024 @09:49AM
(#41798798)
Here's one: https://github.com/szmcdull/glinq It doesn't do function chaining though.
> Tips for lazy developers
> I cannot recommend it, but in case you are too lazy for repeating lo. everywhere, you can import the entire library into the namespace.
import (
. "github.com/samber/lo"
)
TIL. Crazy