generickit is a tool kit featured by Golang Generic. It offers a range of helper/utility methods for commonly-used data structures.
Requirement: Go Release >= v1.18.
In case u got trouble downloading in CN mainland, please enable $GOPROXY by this link and try again.
$ go get github.com/KokoiRuby/generickit@latest- slice: Insert, Delete, Aggregate, Reverse, Shrink, Generator, Find, Contains, MapReduce.
- mapx: Keys, Values, KeysValues, ToMap, SyncMap, HashMap.
- setx: MapSet.
- list: ArrayList, ConcurrentList, LinkedList (Circular + Doubly).
- queue: ConcurrentLinked[Blocking]Queue, ConcurrentArrayBlockingQueue.
- bean: Option.
- sync: Pool, Map.