Select Git revision
-
Md. Alim Ul Karim authored
# Pagination added, take, skip - Pagination added, take, skip ## Sample Codes (Collection) ```go 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 ``` ## CollectionPtr ``` 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()) ``` See merge request !36
Md. Alim Ul Karim authored# Pagination added, take, skip - Pagination added, take, skip ## Sample Codes (Collection) ```go 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 ``` ## CollectionPtr ``` 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()) ``` See merge request !36
funcs.go 1.78 KiB