how to serve css in golang

Solutions on MaxInterview for how to serve css in golang by the best coders in the world

showing results for - "how to serve css in golang"
Nayla
17 Mar 2016
1http.Handle("/", http.FileServer(http.Dir("css/")))
Ava
04 Mar 2016
1// if you keep all css and js in a static folder
2// you can use this
3
4func main() {
5  http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
6}
similar questions
queries leading to this page
how to serve css in golang