how to serve js in golang code example
Example 1: how to serve css through go
http.Handle("/", http.FileServer(http.Dir("css/")))
Example 2: 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"))))
}