Skip to content

Instantly share code, notes, and snippets.

@ravidelcj
Created April 8, 2017 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravidelcj/a85c460d78fc2e1a527a9b1d04080900 to your computer and use it in GitHub Desktop.
Save ravidelcj/a85c460d78fc2e1a527a9b1d04080900 to your computer and use it in GitHub Desktop.
func main() {
http.HandleFunc("/getFile/", getFile)
http.Handle("/getFile/publicFolder/", http.StripPrefix("/getFile/publicFolder/", http.FileServer(http.Dir("./publicFolder"))))
http.ListenAndServe(":8008", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment