package main import ( "fmt" "github.com/wesovilabs/koazee" ) type Food struct { Name string Healthy bool } var foodSlice = []*Food{ {"Vegetables", true}, {"Nuts", true}, {"Sweets", false}, } var stream = koazee.StreamOf(foodSlice) func main() { stream = stream.Set(0, &Food{"Fruit", true}).Do() for _, f := range stream.Out().Val().([]*Food) { fmt.Println(f.Name) } }