Skip to content

Instantly share code, notes, and snippets.

@JeffreyBPetersen
Created October 7, 2016 21:46
Show Gist options
  • Save JeffreyBPetersen/c0485ed55036b316170e84c4b7d12086 to your computer and use it in GitHub Desktop.
Save JeffreyBPetersen/c0485ed55036b316170e84c4b7d12086 to your computer and use it in GitHub Desktop.
quickest possible go webserver?
package main
import "net/http"
func main() {
http.ListenAndServe(":80", http.FileServer(http.Dir(".")))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment