Skip to content

Instantly share code, notes, and snippets.

@nstanke
Created Apr 11, 2012
Embed
What would you like to do?
Simple Golang weberserver
package main
import (
"net/http"
"log"
)
func main() {
err := http.ListenAndServe("", http.FileServer(http.Dir("/var/www/go")))
if err != nil {
log.Printf("Error: %v", err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment