Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Go
  3. gubrak

gubrak

MITGov2.0.3

A Go functional utility library with syntactic sugar, similar to lodash but for Go.

Visit WebsiteGitHubGitHub
515 stars42 forks0 contributors

What is gubrak?

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.

Target Audience

Go developers who need efficient collection operations and functional programming utilities, particularly those familiar with lodash from JavaScript/TypeScript ecosystems.

Value Proposition

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.

Overview

⚙️ Golang functional utility library with syntactic sugar. It's like lodash, but for Go

Use Cases

Best For

  • Manipulating slices and maps with functional operations like map/filter/reduce
  • Performing type checking and validation on Go data structures
  • Implementing lodash-style utilities in Go applications
  • Reducing boilerplate code for common data transformation tasks
  • Adding syntactic sugar to make Go code more expressive
  • Working with collections in a functional programming style

Not Ideal For

  • Applications that prioritize minimal external dependencies and strict adherence to Go's standard library
  • Projects where micro-optimizations for collection operations are critical and hand-written loops are preferred
  • Teams seeking a utility library with extensive community support, frequent updates, and a large ecosystem

Pros & Cons

Pros

Comprehensive Collection Utilities

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.

Functional Programming Patterns

Supports composable operations and immutable transformations, making it easier to implement lodash-like functional styles in Go, as highlighted in the key features.

Type Checking and Validation

Includes predicates such as IsArray, IsString, and IsInt for robust data validation, reducing boilerplate code for type-safe operations in Go.

Syntactic Sugar for Common Tasks

Provides helper functions like RandomString, Now, and Chunk listed in the README, enhancing code readability and reducing repetitive coding efforts.

Cons

Sparse Inline Documentation

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.

Potential Performance Overhead

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.

Limited Community and Ecosystem

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.

Open Source Alternative To

gubrak is an open-source alternative to the following products:

Lodash
Lodash

Lodash is a popular JavaScript utility library that provides consistent, modular functions for common programming tasks like array manipulation, object iteration, and function composition.

Frequently Asked Questions

Quick Stats

Stars515
Forks42
Contributors0
Open Issues0
Last commit2 months ago
CreatedSince 2018

Tags

#functional-programming#go-modules#utility-library#type-checking#golang#collection-operations#go#lodash-alternative#data-manipulation

Built With

G
Go

Links & Resources

Website

Included in

Go169.1k
Auto-fetched 18 hours ago

Related Projects

fzffzf

:cherry_blossom: A command-line fuzzy finder

Stars81,940
Forks2,820
Last commit1 day ago
divedive

A tool for exploring each layer in a docker image

Stars54,353
Forks1,991
Last commit7 months ago
HubHub

A command-line tool that makes git easier to use with GitHub.

Stars22,957
Forks2,222
Last commit2 years ago
lolo

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

Stars21,394
Forks946
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub