summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-01-18 02:41:10 -0700
committernavanchauhan <navanchauhan@gmail.com>2023-01-18 02:41:10 -0700
commit790ca38644b8c37c9feb7c433143a6b49b4f137e (patch)
treef809dc4ef486090648686a4c4769a08034a462d0 /main.go
parent46f32a7dc26dad46ffa974de56bf1541b8578e12 (diff)
added pagination and results per page
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 0 insertions, 5 deletions
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 {