Godash is an open source library of lodash written with golang. A modern Golang utility library delivering modularity, performance & extras.

Install & Import

1
go get -u "github.com/ginkgoch/godash"
1
import "github.com/ginkgoch/godash"

Example

  • Slice Example
1
2
3
4
items := godash.DashSlice{"a", "b", "c", "d"}
chunked := godash.Chunk(items, 2)

// out: [[a b] [c d]]
  • Collection Example
1
2
3
4
items := godash.DashSlice{1, 2, 3, 4, 5}
result := godash.Shuffle(items)

// out: [2 5 4 3 1]
  • More examples TBD…

Index

This is a index of the complete API reference.