diff options
author | navanchauhan <navanchauhan@gmail.com> | 2023-01-18 02:41:10 -0700 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2023-01-18 02:41:10 -0700 |
commit | 790ca38644b8c37c9feb7c433143a6b49b4f137e (patch) | |
tree | f809dc4ef486090648686a4c4769a08034a462d0 /main.go | |
parent | 46f32a7dc26dad46ffa974de56bf1541b8578e12 (diff) |
added pagination and results per page
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -5,7 +5,6 @@ import ( "fmt" "html/template" "io/fs" - "math" "net/http" "os" "strconv" @@ -31,10 +30,6 @@ func create_pdf_url(year string, knumber string) string { } } -func pageCount(total int, perPage int) int { - return int(math.Ceil(float64(total) / float64(perPage))) -} - func main() { err := godotenv.Load(".env") if err != nil { |