Skip to content

Instantly share code, notes, and snippets.

Created Apr 11, 2012
What would you like to do?
Simple Golang weberserver
package main
import (
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