slicy
linq-in-go
Our great sponsors
slicy | linq-in-go | |
---|---|---|
2 | 1 | |
12 | 6 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | about 2 years ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
slicy
-
When to Use Generics
My personal experience with generics was to port a parallel circular queue library (used to take interface{} and require a type cast at every use) add an experiment to build all the Lodash slice and collection functions in Go.
Happy to say that both worked really well. Took me less than an hour to understand the system enough for these purposes, and the implementation hides neatly in the library - the code that uses the library has absolutely no mention of anything generic. Having generics also helped switch to cleaner implementation inside as well, because I could now use maps as well without type casts.
Looks like a solid useful system - I could do everything I wanted, all the complexity stays in the library, and changes were pretty minimal and easy to understand. Would recommend.
https://github.com/sudhirj/cirque
https://github.com/sudhirj/slicy
- Generic slice/collection utility methods for Go
linq-in-go
What are some alternatives?
slice - Type-safe functions for common Go slice operations
go - The Go programming language
pie - 🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance.
cirque - A circular queue that processes jobs in parallel but returns results in FIFO
Koazee - A StreamLike, Immutable, Lazy Loading and smart Golang Library to deal with slices.
rzgrep - grep utility that searches through zip,jar,ear,tgz,bz2 in any form of nesting; it can also decompile class files