package main import ( "fmt" "github.com/wesovilabs/koazee" ) type Person struct { FirstName string } var people = []*Person{ {"Cat"}, {"Dog"}, {"Rat"}, {"Canary"}, {"Gibbon"}, } var stream = koazee.StreamOf(people) func main() { stream = stream.Take(1, 3).Do() for _, f := range stream.Out().Val().([]*Person) { fmt.Println(f.FirstName) } }