gitlab.com/evatix-go/core@v1.3.55/cmd/main/PrintCollection.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/coredata/corestr" 7 ) 8 9 func PrintCollection(collection *corestr.Collection) { 10 fmt.Println(collection.GetPagedCollection(3).String()) 11 12 fmt.Print("\n\nTake 5:\n\n") 13 fmt.Println(collection.Take(5)) 14 fmt.Print("\n\n Skip 2:\n\n") 15 fmt.Println(collection.Skip(2)) 16 fmt.Print("\n\n Skip 0:\n\n") 17 fmt.Println(collection.Skip(0)) 18 fmt.Print("\n\n Take 0:\n\n") 19 fmt.Println(collection.Take(0)) 20 fmt.Print("\n\n Skip(5).Take(2):\n\n") 21 fmt.Println(collection.Skip(5).Take(2)) 22 23 }