Documentation ¶ Index ¶ type Page func (p *Page) Classes() string type State func New(baseLink string, page, total, limit int) *State func (s *State) NextLink() string func (s *State) NextLinkClasses() string func (s *State) Pages() []Page func (s *State) PrevLink() string func (s *State) PrevLinkClasses() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Page ¶ type Page struct { Num int Link string Filler bool Active bool } func (*Page) Classes ¶ func (p *Page) Classes() string type State ¶ type State struct { Total int Current int // contains filtered or unexported fields } func New ¶ func New(baseLink string, page, total, limit int) *State func (*State) NextLink ¶ func (s *State) NextLink() string func (*State) NextLinkClasses ¶ func (s *State) NextLinkClasses() string func (*State) Pages ¶ func (s *State) Pages() []Page func (*State) PrevLink ¶ func (s *State) PrevLink() string func (*State) PrevLinkClasses ¶ func (s *State) PrevLinkClasses() string Source Files ¶ View all Source files types.go Click to show internal directories. Click to hide internal directories.