Skip to content

mylxsw/coll

Repository files navigation

Coll

Build Status Coverage Status Go Report Card codecov Sourcegraph GitHub

Coll is a collection library for Go.

cc := coll.MustNew(testMapData)
collectionWithoutEmpty := cc.Filter(func(value string) bool {
    return value != ""
}).Filter(func(value string, key string) bool {
    return key != ""
})
collectionWithoutEmpty.Each(func(value, key string) {
    if value == "" || key == "" {
        t.Errorf("test failed: %s=>%s", key, value)
    }
})

About

Coll is a collection library for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages