Пример #1
0
func StaticHandler(w http.ResponseWriter, req *http.Request) {
	http.ServeFile(w, req, filepath.Join(staticPath, req.Vars[0]))
}
Пример #2
0
func IndexHandler(w http.ResponseWriter, req *http.Request) {
	http.ServeFile(w, req, filepath.Join(staticPath, "index.html"))
}