mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
remove those many annoying fmt.Println() calls on every handler.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"strconv"
|
||||
@@ -17,8 +16,6 @@ const (
|
||||
)
|
||||
|
||||
func renderArchive(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println(r.URL.Path, "@.", r.Header.Get("user-agent"))
|
||||
|
||||
lastIndex := strings.LastIndex(r.URL.Path, "/")
|
||||
page := 1
|
||||
if lastIndex != -1 {
|
||||
|
||||
Reference in New Issue
Block a user