HTTP 요청 URL 경로에 대응하는 함수 또는 객체이다.
핸들러는 HandleFunc() 함수로 등록할 수 있고, Handle() 함수로는 http.Handler 인터페이스를 구현한 객체를 등록할 수 있다.
func IndexPathHandler(w http.ResponseWirter, r *http.Request){
...
}
http.HandlerFunc("/", IndexPathHandler)
of
http.HandlerFunc("/", func(w http.ResponseWirter, r *http.Request){
...
})