Skip to content

Instantly share code, notes, and snippets.

@majest
Created February 9, 2015 12:27
Show Gist options
  • Save majest/3f4707941fc9a1c4a1e4 to your computer and use it in GitHub Desktop.
Save majest/3f4707941fc9a1c4a1e4 to your computer and use it in GitHub Desktop.
go http server
package main
import (
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("./")))
http.ListenAndServe(":10000", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment