3 ms·
The best advice I can give is to write a minimal web server using net/http[0], get a feel for how to write a RESTful HTTP API by hand, and then start experiment
by ihsw 11y ago
The best advice I can give is to write a minimal web server using net/http[0], get a feel for how to write a RESTful HTTP API by hand, and then start experimenting with web frameworks like Gin[1], Martini[2], and Beego[3].
[0] https://golang.org/doc/articles/wiki/ https://golang.org/doc/articles/wiki/
[1] https://github.com/gin-gonic/gin https://github.com/gin-gonic/gin
[2] https://github.com/go-martini/martini https://github.com/go-martini/martini
[3] https://github.com/astaxie/beego https://github.com/astaxie/beego
- placeybordeaux 11y agoI'd recommend against both martini and gin. Neither of which properly use the HTTPHandler interface and the owner of martini has officially stated that martini is not idiomatic. I loved it when I started, then really hated it when I needed to refactor, there is just too much magic and you pay a speed cost for that magic.