A Go functional utility library with syntactic sugar, similar to lodash but for Go.
Gubrak is a functional utility library for Go that provides lodash-like helper functions for common data manipulation tasks. It offers syntactic sugar for working with collections, performing type checks, and implementing functional programming patterns in Go applications. The library helps developers write more expressive and concise code while maintaining Go's performance characteristics.
Go developers who need efficient collection operations and functional programming utilities, particularly those familiar with lodash from JavaScript/TypeScript ecosystems.
Developers choose Gubrak because it brings the convenience and expressiveness of lodash to Go with a comprehensive API covering collection operations, type checking, and data transformation. It reduces boilerplate code while maintaining Go's static typing and performance benefits.
⚙️ Golang functional utility library with syntactic sugar. It's like lodash, but for Go
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers a wide range of functions like Filter, Map, Reduce, and GroupBy from the README's API list, enabling expressive data manipulation on slices and maps.
Supports composable operations and immutable transformations, making it easier to implement lodash-like functional styles in Go, as highlighted in the key features.
Includes predicates such as IsArray, IsString, and IsInt for robust data validation, reducing boilerplate code for type-safe operations in Go.
Provides helper functions like RandomString, Now, and Chunk listed in the README, enhancing code readability and reducing repetitive coding efforts.
The README lacks practical examples and tutorials, only listing APIs and linking to pkg.dev, which may increase initial learning time and require external resources.
As an abstraction layer, functions like Map and Filter might introduce slight overhead compared to optimized native loops, though not benchmarked or addressed in the documentation.
With fewer GitHub stars and less visibility than alternatives like lo, Gubrak has a smaller user base, which can mean slower updates and fewer third-party integrations.
gubrak is an open-source alternative to the following products: