12 lines
242 B
Go
12 lines
242 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func Home(w http.ResponseWriter, r *http.Request) {
|
||
|
log.Printf("Serve home page to %s: %s [%s]\n", r.Header.Get("X-Forwarded-For"), r.URL.Path, r.UserAgent())
|
||
|
http.ServeFile(w, r, "home.html")
|
||
|
}
|