Last active
May 8, 2019 09:43
-
-
Save lidedongsn/dbb1066018c3a5df5f6f29e6e0c78fe5 to your computer and use it in GitHub Desktop.
A simple simple simple http file server.
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() { | |
fs := http.FileServer(http.Dir("source")) | |
http.Handle("/", fs) | |
http.ListenAndServe(":9527", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment