wndisra / gubrak

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

Home Page:https://godoc.org/github.com/novalagung/gubrak

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gubrak v2

Golang utility library with syntactic sugar. It's like lodash, but for golang.

Go Report Card Build Status Coverage Status

Installation

The latest version of gubrak is v2. Here are the available method to get this library.

  • Using go get from github, for $GOPATH-based project:

    go get -u github.com/novalagung/gubrak
  • Using go get from github, for Go Mod-based project:

    go get -u github.com/novalagung/gubrak@v2.0.0

For legacy version use github.com/novalagung/gubrak@v1.

Documentation

Hello World Example

example

APIs

Below are the list of available functions on gubrak:

ChunkCompactConcatCountDifferenceDropDropRightEachEachRightFillFilterFindFindIndexFindLastFindLastIndexFirstForEachForEachRightFromPairsGroupByHeadIncludesIndexOfInitialIntersectionIsArrayIsBoolIsChannelIsDateIsEmptyIsEmptyStringIsFloatIsFunctionIsIntIsMapIsNilIsNumericIsPointerIsSliceIsStringIsStructObjectIsTrueIsUintIsZeroNumberJoinKeyByLastLastIndexOfMapNowNthOrderByPartitionPullPullAllPullAtRandomIntRandomStringReduceRejectRemoveReverseSampleSampleSizeShuffleSizeSortByTailTakeTakeRightUnionUniqWithout

Test

go get -u github.com/novalagung/gubrak
dep ensure
go test -cover -race -v ./... 

Contribution

Fork ➜ Create branch ➜ Commit ➜ Push ➜ Pull Requests

License

MIT License

About

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

https://godoc.org/github.com/novalagung/gubrak

License:MIT License


Languages

Language:Go 100.0%