Re:So you want to expose Go on the Internet
by insertnickname on Tuesday December 20, 2016 @05:38AM
(#13218777)
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://dennisforbes.ca/index.php/2013/08/07/ten-reasons-you...
-and in re-analysis it all holds completely true. Nginx gives my deploy flexibility, at essentially negligible cost. And no Go development should include a bunch of boilerplate code to do banal stuff like serving static content.