12 lines
228 B
Go
12 lines
228 B
Go
|
package handler
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
// This handler is executed when the router cannot match any route
|
||
|
func NotFound(w http.ResponseWriter, r *http.Request) {
|
||
|
fmt.Printf("%s - %s - %s\n", r.Method, r.URL, r.Host)
|
||
|
}
|