Rename PaginatorType to Type

Type name would be used as paginator.PaginatorType by other packages,
and that stutters.
This commit is contained in:
Christian Muehlhaeuser 2020-05-25 13:55:28 +02:00
parent 6db7c48ba8
commit bb19d42cc0
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 4 additions and 4 deletions

View File

@ -10,18 +10,18 @@ import (
"github.com/charmbracelet/boba" "github.com/charmbracelet/boba"
) )
// PaginatorType specifies the way we render pagination // Type specifies the way we render pagination
type PaginatorType int type Type int
// Pagination rendering options // Pagination rendering options
const ( const (
Arabic PaginatorType = iota Arabic Type = iota
Dots Dots
) )
// Model is the Boba model for this user interface // Model is the Boba model for this user interface
type Model struct { type Model struct {
Type PaginatorType Type Type
Page int Page int
PerPage int PerPage int
TotalPages int TotalPages int