Sign up for a GitHub account Sign in All Gists kyleterry / gist:728fb282fff5660dc9fe Created July 18, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View gist:728fb282fff5660dc9fe gistfile1.go Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package main import ( " log " " net/http " " net/http/httputil " " net/url " ) func main () { u , err := url. Parse ( " http://localhost:5000 " ) if err != nil { log. Fatal (err) } p := httputil. NewSingleHostReverseProxy (u) http. Handle ( " / " , p) if err := http. ListenAndServe ( " :8080 " , nil ); err != nil { log. Fatal (err) } } ...