laik / godash

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

Home Page:https://ginkgoch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://ginkgoch.com

License:MIT License


Languages

Language:Go 100.0%