/toolbox

Primary LanguageGoMIT LicenseMIT

toolbox - Iterate over slices, maps, channels...

tag Go Version Build Status Go report Coverage Contributors License

✨ wangliliwang/toolbox is a Lodash-style Go library based on Go 1.18+ Generics and is inspired by samber/lo and lodash.

🚀 Install

go get github.com/wangliliwang/toolbox

💡 Usage

You can import toolbox using:

import (
    "github.com/wangliliwang/toolbox"
)

Then use one of the helpers below:

ch := toolbox.SliceToChannel[string]([]string{"Samuel", "John", "Samuel"})