Skip to content

Instantly share code, notes, and snippets.

@wanghailei
Created September 18, 2012 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wanghailei/3742039 to your computer and use it in GitHub Desktop.
Save wanghailei/3742039 to your computer and use it in GitHub Desktop.
A simple server in Go
package main
import "net/http"
func main() {
panic(http.ListenAndServe(":8080", http.FileServer(http.Dir("/File/Folder/Path"))))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment