Last active
August 29, 2015 14:16
-
-
Save neilvallon/dbc8c5b0aa5ad5e9868a to your computer and use it in GitHub Desktop.
dead simple file server that will host the current dir on port 8000
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" | |
"github.com/zenazn/goji" | |
) | |
func init() { | |
goji.Get("/*", http.FileServer(http.Dir("./"))) | |
} | |
func main() { | |
goji.Serve() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment