Skip to content

Instantly share code, notes, and snippets.

@neilvallon
Last active August 29, 2015 14:16
Show Gist options
  • Save neilvallon/dbc8c5b0aa5ad5e9868a to your computer and use it in GitHub Desktop.
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
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