「public」フォルダにあるデフォルトページ「index.html」を設定する必要があります。Martiniフレームワークでこれを行うにはどうすればよいですか?
私はこれを試しましたが、うまくいきません:
func main() {
m := martini.Classic()
static := martini.Static("public", martini.StaticOptions{Fallback: "/index.html", Exclude: "/send"})
m.NotFound(static, http.NotFound)
m.Use(static)
m.Get("/send", sendEmail)
m.Run()
}