Skip to content

Instantly share code, notes, and snippets.

@freeformz
Created February 3, 2017 20:36
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 freeformz/e9619fa1010eaaf5a0532c6d36d68f2c to your computer and use it in GitHub Desktop.
Save freeformz/e9619fa1010eaaf5a0532c6d36d68f2c to your computer and use it in GitHub Desktop.
depExample1
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