Godash - A port of lodash utility functions for Go language
This library contains different packages for different collection types that you can import. For instance, to import functions related to slices you can do something like:
import "github.com/iamtabrezkhan/godash/slice"
Note: This library heavily relies on reflection, and it checks for types on runtime, so make sure you have good test suites. Although, for most of the known types we are avoiding the use of reflect and only using when there are unknown custom types.
go get github.com/iamtabrezkhan/godash
// import functions related to slice
import "github.com/iamtabrezkhan/godash/slice"
slice.Chunk([]int{1, 2, 3, 4, 5}, 2) // ==> [[1, 2], [3, 4], [5]]
- slice
- more soon...
👤 Tabrez Khan
- Website: https://iamtabrezkhan.netlify.app
- Twitter: @TabrezX
- Github: @iamtabrezkhan
- LinkedIn: @iamtabrezkhan
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Tabrez Khan.
This project is MIT licensed.