3 ms·
Static file server in one line of Go: http.ListenAndServe(":8080", http.FileServer(http.Dir("/usr/share/doc")) https://godoc.org/net/http#FileServer https
by insertnickname 10y ago
Static file server in one line of Go:
http.ListenAndServe(":8080", http.FileServer(http.Dir("/usr/share/doc"))
https://godoc.org/net/http#FileServer https://godoc.org/net/http#FileServer