teach
/
akhet
Archived
1
0
Fork 0
This repository has been archived on 2020-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
akhet/home.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")
}