Open nervo opened 2 months ago
Introduce paginator options, to ease instanciation.
p := paginator.New( paginator.WithPerPage(42), paginator.WithTotalPages(42), )
Only these two options has been added, but other could be easily added now that the foundations has been laid :)
Note: to be honnest, i don't know if you prefer such integration, or the "chain" one like:
p := paginator.New().WithPerPage(42).WithTotalPages(42)
I see bof of them in current charmbracelet ecosystem, just tell me :)
Introduce paginator options, to ease instanciation.
Only these two options has been added, but other could be easily added now that the foundations has been laid :)
Note: to be honnest, i don't know if you prefer such integration, or the "chain" one like:
I see bof of them in current charmbracelet ecosystem, just tell me :)