Changed theme, added search, added pagination

This commit is contained in:
2022-11-27 09:27:49 +01:00
parent 7ab57f2ea0
commit bea96468d5
19 changed files with 370 additions and 137 deletions
+22
View File
@@ -0,0 +1,22 @@
package infrastructure
import (
"fmt"
"time"
)
func GetCurrentYear() string {
return fmt.Sprintf("%v", time.Now().Year())
}
func GetPrevPagePokemons(current int) int {
if current < 10 {
return current
}
return current - 10
}
func GetNextPagePokemons(current int) int {
return current + 10
}