Skip to content

Instantly share code, notes, and snippets.

@skyjia
Forked from wanghailei/server.go
Created September 23, 2012 12:32
Show Gist options
  • Save skyjia/3770386 to your computer and use it in GitHub Desktop.
Save skyjia/3770386 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