my routers/default.go, I'm trying to use the original Go solution, but failed, this code can't compiled. I don't know how to replace the router with faviconHandler:
func faviconHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/img/favicon.ico")
}
func init() {
beego.Router("/", &controllers.MainController{})
beego.Router("/favicon.ico", faviconHandler) // this doesn't work
}