Created
May 4, 2018 06:59
-
-
Save rajajawahar/9217f9ce82c369215219ccac3b58ef90 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
package main | |
import ( | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
http.ServeFile(w, r, r.URL.Path[1:]) | |
}) | |
http.ListenAndServe(":8001", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment