/godash

This is lodash in golang version. A modern Golang utility library delivering modularity, performance & extras.

Primary LanguageGoMIT LicenseMIT

PkgGoDev Go Report Card

forthebadge

Lodash in Golang Version

This is lodash in golang version. A modern Golang utility library delivering modularity, performance & extras.

Install & Import

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

Example

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

// out: [[a b] [c d]]
  • Collection Example
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.