Answer the question
In order to leave comments, you need to log in
Why are static files not opening?
app
cmd
myapp
main.go
web
static
css/
img/
type Server struct {
router *mux.Router
....
}
s.router.Handle("/static/", http.FileServer(http.Dir("web/static/")))
s.router.HandleFunc("/", s.handleIndex())
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question