samber/lo
View on GitHub ↗ ★ 21,450 Go
💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
24 mentions on Hacker News by 21 people: 7 stories, 17 comments · first 2022-03-02 · latest 2025-10-08
20082026
-
▲ 1
Samber/lo v1.52.0 – now supports Go 1.23's iteratorsstory by samber · 2025-10-08 · 0 comments
-
…too lazy for repeating lo. everywhere, you can import the entire library into the namespace. import ( . "github.com/samber/lo" ) TIL. Crazy
comment by acheong08 · 2024-10-10 · in Fun with Go Iterators -
Might be interesting to make a library that competes with https://github.com/samber/lo ?
comment by pdimitar · 2024-10-10 · in Fun with Go Iterators -
…considered idomatic. If were up to me we'd be using a language with a better type system :) [0]: https://github.com/samber/lo
comment by shepherdjerred · 2024-04-30 · in Borgo is a statically typed language that compiles to Go -
…I'm fond of samber/lo [1] myself. I don't know how widely used they are, though. [1] https://pkg.go.dev/github.com/samber/lo
comment by DylanSp · 2024-01-15 · in Go is not an easy language (2021) -
…in the slices package. For map, reduce etc it's not in the stdlib yet, but you can use https://pkg.go.dev/github.com/samber/lo
comment by PhilippGille · 2024-01-14 · in Go is not an easy language (2021) -
…: modelled after LINQ, but created pre-generics so only recently added some generics features - https://github.com/samber/lo : kind of like JavaScript's lodash library but for Go 1.18+ (with generics) - https://github.com/asynkron/gofun :…
comment by benhoyt · 2023-11-11 · in Fourteen Years of Go -
…that includes a lot of samber/lo usage that I'm slowly replacing every for loop I encounter. [1]: https://github.com/samber/lo
comment by allyjweir · 2023-11-03 · in Why people in Google hate Go? -
A simple alternative is the combination of: - https://github.com/samber/lo - https://github.com/samber/mo The split is also nice as you can choose to just use the generic convenience functions from lo without the more FP related things…
comment by PhilippGille · 2023-08-18 · in FP-Go: Functional programming library for Golang -
I use samber/lo in every project https://github.com/samber/lo (Go is still plenty fast with it)
comment by KingOfCoders · 2023-04-08 · in Higher-order functions in Go -
also https://github.com/samber/lo
comment by leeoniya · 2022-07-19 · in Spf13 is leaving Google -
…be part of the core libraries, so that datatypes can be easily mapped, casted and filtered. [1] https://github.com/samber/lo
comment by cookiengineer · 2022-07-18 · in Learning Go as a Python Developer: The Good and the Bad -
…[1]. It's worth taking a look at it if you're curious how to implement it for your structs. [1] https://github.com/samber/lo
comment by cookiengineer · 2022-07-09 · in Go generics are not bad -
Why can't you? https://github.com/samber/lo/blob/master/slice.go#L20
comment by liambowen · 2022-04-28 · in Making Faster B-Trees with Go Generics -
▲ 22
A Lodash-style Go library based on Go 1.18 Generics (map, filter, contains)story by scanr · 2022-03-07 · 3 comments
-
▲ 2
Lodash-style Go library based on Go 1.18 genericsstory by ccakes · 2022-03-07 · 0 comments
-
▲ 3
A Lodash-style Go library based on Go 1.18 Genericsstory by ngaut · 2022-03-06 · 0 comments
-
▲ 3
Lo: Lodash-style Go library based on Go 1.18 Genericsstory by 0xedb · 2022-03-05 · 0 comments
-
▲ 3
Lo: A Lodash-style library based on Go 1.18 genericsstory by ericyan · 2022-03-04 · 0 comments
-
▲ 1
A Lodash-style library compatible with Go 1.18 genericsstory by samber · 2022-03-02 · 0 comments