Slice methods in golang

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • lo

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

    What's really maps and filters? All I see is loops hidden in JavaScript runtime with different names but yes, it doesn't hurt to write few readable Go code for every project, when I started Go I used something like Samber/lo this is a worthy competitor you can install in every project and make use of it😜, another thing is: you have pure go code (no type definitions) so you can easily jump right into the code to see how it's done and learn

  • go

    The Go programming language

    That's one of the reasons you don't see map/filter in the stdlib yet. There's ongoing work for iterator-like capabilities that would make these things more efficient (e.g. https://github.com/golang/go/discussions/56413)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts