Created
April 8, 2017 19:41
-
-
Save ravidelcj/a85c460d78fc2e1a527a9b1d04080900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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