Errorpages/main.go

18 lines
243 B
Go
Raw Normal View History

2023-11-24 19:00:35 +00:00
package main
import (
"fmt"
"log"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
// url path: r.URL.Path[1:]
}
func main() {
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe("127.0.0.1:8000", nil))
}