gitlab.com/evatix-go/core@v1.3.55/cmd/main/PrintCollectionPtr.go (about)

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