{"repo":"samber/lo","free":true,"listed":false,"github":"https://github.com/samber/lo","clone":"git clone https://github.com/samber/lo.git","description":"💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)","language":"Go","stars":21405,"topics":["lodash","golang","go","generics","contract","constraints","functional","programming","typesafe","filterable"],"license":"MIT","category":"dev-tools","readme_excerpt":"lo - Iterate over slices, maps, channels... ✨ samber/lo is a Lodash-style Go library based on Go 1.18+ Generics. A utility library based on Go 1.18+ generics that makes it easier to work with slices, maps, strings, channels, and functions. It provides dozens of handy methods to simplify common coding tasks and improve code readability. It may look like Lodash in some aspects. 5 to 10 helpers may overlap with those from the Go standard library, in packages slices and maps . I feel this library is legitimate and offers many more valuable abstractions. See also: - samber/ro: Reactive Programming for Go: declarative and composable API for event-driven applications - samber/do: A dependency injection toolkit based on Go 1.18+ Generics - samber/mo: Monads based on Go 1.18+ Generics (Option, Result, Either...) - samber/cc-skills-golang: AI Agent Skills for Golang What makes it different from samber/ro ? - lo: synchronous helpers across finite sequences (maps, slices...) - ro: processing of infinite data streams for event-driven scenarios Why this name? I wanted a short name , similar to \"Lodash\", and no Go package uses this name. 🚀 Install This library is v1 and follows SemVer strictly. No breaking changes will be made to exported APIs before v2.0.0, except for experimental packages under exp/ . This library has no dependencies outside the Go standard library. 💡 Usage You can import lo using: Then use one of the helpers below: Tips for lazy developers I cannot recommend it, but in","default_branch":null,"files":null,"tree":[],"storefront":"/r/samber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/samber/lo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}