3 ms·
People build servers from scratch (net/http) in Go without frameworks all the time. If you don’t know that you should probably refrain from starting <my favorit
by oefrha 4y ago
People build servers from scratch (net/http) in Go without frameworks all the time. If you don’t know that you should probably refrain from starting <my favorite language> vs <language I don’t know well> flamewars.
- rob74 4y agoAgree, but just for the people asking themselves "why would you do that?": these are not necessarily servers accessible via the Internet, e.g. you can run godoc locally to serve your documentation, or you can serve your UI via HTTP, like e.g. the moggio music player (https://github.com/mjibson/moggio https://github.com/mjibson/moggio)
- oefrha 4y agonet/http is production ready. Performant, handles h2, terminates SSL, etc. It’s nothing like the toy HTTP severs shipped with some other languages, e.g. Python’s http.server. The standard answer to “why would you do that” is “why not”.