From 790ca38644b8c37c9feb7c433143a6b49b4f137e Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Wed, 18 Jan 2023 02:41:10 -0700 Subject: added pagination and results per page --- main.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0cf7e35..9394aa6 100644 --- a/main.go +++ b/main.go @@ -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 { -- cgit v1.2.3