Skip to content

gronpipmaster/go-widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go widgets

Go widgets, pagination, breadcrumb, menu.

Example

Pagination docs http://godoc.org/github.com/gronpipmaster/go-widgets/pagination

pagination := pagination.New(total, currentPage, pageSize, "/me/page/")
pagination.SetNumLinks(10).Init()
//print in your template
// {{.pagination.Summary}}
// {{.pagination.Render}}

Breadcrumb docs http://godoc.org/github.com/gronpipmaster/go-widgets/breadcrumb

breadcrumb := breadcrumb.New().Add("Home", "/").Add("Foo", "")
//print in your template
// {{.breadcrumb.Render}}

Menu docs http://godoc.org/github.com/gronpipmaster/go-widgets/menu

sidebar := menu.New().AddItem("Bar", "/bar")
//print in your template
// {{.sidebar.Render}}

About

Go widgets, pagination, breadcrumb, menu.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages