Hacker News new | past | comments | ask | show | jobs | submit login

It's years old, but I listened to the advice of-

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.




Static file server in one line of Go:

    http.ListenAndServe(":8080", http.FileServer(http.Dir("/usr/share/doc"))
https://godoc.org/net/http#FileServer




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: