Skip to content

Instantly share code, notes, and snippets.

@dpogorzelski
Created March 1, 2014 22:30
Show Gist options
  • Save dpogorzelski/9298492 to your computer and use it in GitHub Desktop.
Save dpogorzelski/9298492 to your computer and use it in GitHub Desktop.
func main() {
r := mux.NewRouter()
r.HandleFunc("/ws", remoteHandler)
r.PathPrefix("/").Handler(http.FileServer(http.Dir("./public/")))
http.ListenAndServe(":3000", r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment