Gubrak v2
Gubrak is Go functional utility library with syntactic sugar. It is similar to lodash, but for Go language.
Installation
The latest version of gubrak is v2. Use the following command to install it to your project.
go get -u github.com/novalagung/gubrak/v2
Documentation
Hello World Example
APIs
Below are the list of available functions on gubrak:
Chunk • Compact • Concat • Count • Difference • Drop • DropRight • Each • EachRight • Fill • Filter • Find • FindIndex • FindLast • FindLastIndex • First • ForEach • ForEachRight • FromPairs • GroupBy • Head • Includes • IndexOf • Initial • Intersection • IsArray • IsBool • IsChannel • IsDate • IsEmpty • IsEmptyString • IsFloat • IsFunction • IsInt • IsMap • IsNil • IsNumeric • IsPointer • IsSlice • IsString • IsStructObject • IsTrue • IsUint • IsZeroNumber • Join • KeyBy • Last • LastIndexOf • Map • Now • Nth • OrderBy • Partition • Pull • PullAll • PullAt • RandomInt • RandomString • Reduce • Reject • Remove • Reverse • Sample • SampleSize • Shuffle • Size • SortBy • Tail • Take • TakeRight • Union • Uniq • Without
Test
go test -cover -race -v ./... Contribution
Fork ➜ Create branch ➜ Commit ➜ Push ➜ Pull Requests
License
MIT License
