✨ wangliliwang/toolbox
is a Lodash-style Go library based on Go 1.18+ Generics and is inspired by samber/lo and lodash.
go get github.com/wangliliwang/toolbox
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"})