Skip to content
Snippets Groups Projects
Select Git revision
  • feature/v1.3.60
  • develop default protected
  • main protected
  • release/v1.0.7
  • release/v1.0.0
  • feature/v0.9.5
  • release/v0.6.2
  • hotfix/v0.5.7
  • release/v0.5.6
  • release/v0.5.5
  • hotfix/v0.5.4
  • hotfix/v0.5.3
  • hotfix/v0.5.2
  • release/v0.5.1
  • hotfix/v0.5.0
  • hotfix/v0.4.9
  • hotfix/v0.4.8
  • hotfix/v0.4.7
  • release/v0.4.6
  • hotfix/v0.4.5
  • v1.3.55
  • v1.3.52
  • v1.3.50
  • v1.3.45
  • v1.3.42
  • v1.3.41
  • v1.3.40
  • v1.3.38
  • v1.3.37
  • v1.3.36
  • v1.3.35
  • v1.3.34
  • v1.3.33
  • v1.3.32
  • v1.3.31
  • v1.3.30
  • v1.3.29
  • v1.3.28
  • v1.3.27
  • v1.3.26
40 results

funcs.go

  • Md. Alim Ul Karim's avatar
    6f8235f8
    Merge branch 'feature/pagination' into 'draft/develop' · 6f8235f8
    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
    6f8235f8
    History
    Merge branch 'feature/pagination' into 'draft/develop'
    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