Hacker GitHub

← All repos

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

Mentions per year 24 mentions · busiest year 2022 (12)
20082026
  1. ▲ 1
    Samber/lo v1.52.0 – now supports Go 1.23's iterators
    story by samber · 2025-10-08 · 0 comments
  2. …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
  3. 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
  4. …considered idomatic. If were up to me we'd be using a language with a better type system :) [0]: https://github.com/samber/lo
  5. …time, with the occasional generics helper. Why the hell would I clutter my code with, for example: https://github.com/samber/lo?tab=readme-ov-file#fromentries-...
    comment by puika · 2024-02-07 · in Go 1.22
  6. …use the "lo" library (inspired from lodash). It's my goto Swiss army knife for golang projects. https://github.com/samber/lo
    comment by hambos22 · 2024-02-07 · in Go 1.22
  7. …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)
  8. …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)
  9. …: 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
  10. …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?
  11. 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
  12. 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
  13. also https://github.com/samber/lo
    comment by leeoniya · 2022-07-19 · in Spf13 is leaving Google
  14. …be part of the core libraries, so that datatypes can be easily mapped, casted and filtered. [1] https://github.com/samber/lo
  15. …[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
  16. 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
  17. Someone started a lodash style stdlib replacement: https://github.com/samber/lo
    comment by frenchie4111 · 2022-03-15 · in Go 1.18
  18. …"that one boilerplate-y language without generics" into my favorite language. I've been using the https://github.com/samber/lo library, and it is very nice to be able to do "map/reduce/etc..." on golang structs. I would really enjoy a…
    comment by honkycat · 2022-03-15 · in Go 1.18
  19. ▲ 22
    A Lodash-style Go library based on Go 1.18 Generics (map, filter, contains)
    story by scanr · 2022-03-07 · 3 comments
  20. ▲ 2
    Lodash-style Go library based on Go 1.18 generics
    story by ccakes · 2022-03-07 · 0 comments
  21. ▲ 3
    A Lodash-style Go library based on Go 1.18 Generics
    story by ngaut · 2022-03-06 · 0 comments
  22. ▲ 3
    Lo: Lodash-style Go library based on Go 1.18 Generics
    story by 0xedb · 2022-03-05 · 0 comments
  23. ▲ 3
    Lo: A Lodash-style library based on Go 1.18 generics
    story by ericyan · 2022-03-04 · 0 comments
  24. ▲ 1
    A Lodash-style library compatible with Go 1.18 generics
    story by samber · 2022-03-02 · 0 comments