barcodes/web/page.route.go

15 lines
309 B
Go

package web
import (
"fmt"
"net/http"
"strings"
)
func mainHandler(w http.ResponseWriter, r *http.Request) {
fmt.Println("Request URL: ", r.URL.Path)
requestFile := strings.TrimRight(r.URL.Path, "/")
requestFile = strings.TrimRight(requestFile, ".html")
fmt.Println("Template File: ", requestFile)
}