Last active
May 25, 2020 06:55
-
-
Save xuboso/59e66381b1b76d52a98795984752063a to your computer and use it in GitHub Desktop.
This file contains 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("downloads/")) | |
http.Handle("/static/", http.StripPrefix("/static/", fs)) | |
http.ListenAndServe(":8081", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment