(box *packr.Box)
| 74 | } |
| 75 | |
| 76 | func NotFoundHandler(box *packr.Box) http.Handler { |
| 77 | return HandlerFunc(func(w http.ResponseWriter, r *http.Request) error { |
| 78 | w.WriteHeader(http.StatusNotFound) |
| 79 | w.Write(box.Bytes("404.html")) |
| 80 | return nil |
| 81 | }) |
| 82 | } |