GitHub: https://github.com/melling/GoWebServer
I'm not sure that I like embedding html in fmt.Print() methods, along with templates. A lot of my page handlers look something like this:
https://github.com/melling/GoWebServer/blob/master/src/webse...
My site is about 4000-5000 lines of Go, with a bit of "repeating myself". I'd like to hear from devs who've built larger sites.
Btw, here's my site:
And the usually "hidden" admin pages where I've done most of my work:
http://thespanishsite.com/admin/summary?language=chinese&pic...
[0]: https://www.youtube.com/watch?v=yi5A3cK1LNA&list=PLMW8Xq7bXr...
Building a framework is useful for doing that, because you have to understand the routing mechanisms, the way statuses and headers are set within the net/http package, etc.
Any new library with uses this function helps me.
So in the end: you dont need a framework, but libraries are nice.
Note: My api is a simple json based rest service.