Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to serve css in golang

// if you keep all css and js in a static folder
// you can use this

func main() {
  http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
}
 
PREVIOUS NEXT
Tagged: #serve #css #golang
ADD COMMENT
Topic
Name
3+9 =