Created
February 3, 2017 20:36
-
-
Save freeformz/e9619fa1010eaaf5a0532c6d36d68f2c to your computer and use it in GitHub Desktop.
depExample1
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" | |
"os" | |
"github.com/gorilla/mux" | |
) | |
func main() { | |
r := mux.NewRouter() | |
r.Handle("/", http.FileServer(http.Dir("."))) | |
http.ListenAndServe(":"+os.Getenv("PORT"), r) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment