Skip to content

satheeshaGowda/gopage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-paginator

Pagination API for golang slices Circle CI

#Example

import(
        "fmt"
        "github.com/goibibo/gopage"
)

func main() {
        p, _ := gopage.NewPaginator([]int{1, 2, 3, 4, 5})
        p.SetPageSize(2)

        fmt.Println(p.Page(1))
        fmt.Println(p.Page(2))
        fmt.Println(p.Page(3))
}

About

Pagination API for golang slices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages