Pagination added, take, skip
items := &[]string{
"00",
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
}
collection := corestr.NewCollectionUsingStrings(items, false)
fmt.Println(collection.GetPagedCollection(3).String())
GOROOT=D:\Go #gosetup
GOPATH=D:\github\go-workspace #gosetup
D:\Go\bin\go.exe build -o C:\Users\Administrator\AppData\Local\Temp\___go_build_gitlab_com_evatix_go_core_cmd_main.exe gitlab.com/evatix-go/core/cmd/main #gosetup
C:\Users\Administrator\AppData\Local\Temp\___go_build_gitlab_com_evatix_go_core_cmd_main.exe #gosetup
# Summary of `*corestr.Collection`, Length ("3") - Sequence `1`
- 01
- 02
- 03
# Summary of `*corestr.Collection`, Length ("3") - Sequence `2`
- 04
- 05
- 06
# Summary of `*corestr.Collection`, Length ("3") - Sequence `3`
- 07
- 08
- 09
# Summary of `*corestr.Collection`, Length ("3") - Sequence `4`
- 10
- 11
- 12
Process finished with exit code 0
go
items := &[]string{
"00",
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
}
collection := corestr.NewCollectionPtrUsingStrings(items, 0)
fmt.Println(collection.GetPagedCollection(3).String())