Skip to content

Instantly share code, notes, and snippets.

@lugu
Created June 23, 2013 11:00
Show Gist options
  • Save lugu/5844628 to your computer and use it in GitHub Desktop.
Save lugu/5844628 to your computer and use it in GitHub Desktop.
static http server in go (from golang.org)
package main
import "net/http"
func main() {
panic(http.ListenAndServe(":8080", http.FileServer(http.Dir("/home/chronos/user/src"))))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment