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

View File

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