Created
June 23, 2013 11:00
-
-
Save lugu/5844628 to your computer and use it in GitHub Desktop.
static http server in go (from golang.org)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "net/http" | |
func main() { | |
panic(http.ListenAndServe(":8080", http.FileServer(http.Dir("/home/chronos/user/src")))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment