koazee icon indicating copy to clipboard operation
koazee copied to clipboard

A StreamLike, Immutable, Lazy Loading and smart Golang Library to deal with slices.

Results 16 koazee issues
Sort by recently updated
recently updated
newest added

Let's suppose I need to get all elements from A that don't appear in B slice (difference), but comparing only the name. ``` package main import ( "fmt" "github.com/wesovilabs/koazee" )...

val := koazee.StreamOf(bindSlice) out := val.Filter(func(x model.ZbizThirdLogin) bool { return x.Uuid!=nil && *x.Uuid == uid }).Map(func(x model.ZbizThirdLogin) model.ZbizThirdLogin { return model.ZbizThirdLogin{ ID: x.ID, ThirdName: x.ThirdName, ThirdType: x.ThirdType, } }).Out()

**Describe the bug** Map() throws panic if stream is empty or was filtered out **To Reproduce** This code taken from examples. Just added Map(): ``` package main import ( "strings"...

#60 I added Chunk Operator please check and review it.

I want to use it like this ``` result := koazee. StreamOf([]string{"a", "b", "c"}). Chunk(2). Out(). Val().([][]string) // result: [][]string{{"a", "b"}, {"c"}} result := koazee. StreamOf([]string{"a", "b", "c"}). Chunk(2). Map(...

Ex : ``` type test struct { name string } func test33(names []string, test test ) string{ stream := koazee.StreamOf(names). Reduce(func(acc string, name string) (string, error) { log.Info( test.name) return...

It would be nice if it would be possible to use methods like Map() or Filter() and get back a slice from the stream whose elements are typed like the...

**Describe the bug** When importing `koazee` in a project which uses go mod, any command run exits with an error. **To Reproduce** Steps to reproduce the behavior: 1. Create a...

go get -u github.com/wesovilabs/koazee go: finding github.com/golangci/unparam latest go: finding github.com/golangci/revgrep latest go: finding github.com/divan/depscheck latest go: finding github.com/go-critic/checkers latest go: finding github.com/golangci/gofmt latest go: finding github.com/golangci/check latest go: finding...

Koazee makes an easy way to operate slices, it's very great. I wonder if there is a plan to deal with maps? Thanks!