Last active
August 29, 2015 14:19
-
-
Save jlandure/d978333679afe5ea78c0 to your computer and use it in GitHub Desktop.
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 ( | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| http.Handle("/", http.StripPrefix("/", http.FileServer(http.Dir(".")))) | |
| log.Print("Connectez-vous sur http://localhost:8000/") | |
| if err := http.ListenAndServe(":8000", nil); err != nil { | |
| log.Fatal("ListenAndServe: ", err) | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$bin\go.exe run httpd.go