awesome for gin framework
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. https://gin-gonic.github.io/gin/
r.Use(static.Serve("/static", static.LocalFile("/tmp", true)))
Cache-Status
header support and many other cool features.conn, err := wsupgrader.Upgrade(w, r, nil)
https://medium.com/wtf-dial/wtf-dial-domain-model-9655cd523182
Application design is a hard problem. There are so many design decisions to make and without a set of solid principles to guide you the problem is made even worse. We’ve looked at several current approaches to Go application design and we’ve seen many of their flaws. I believe approaching design from the standpoint of dependencies makes code organization simpler and easier to reason about. First we design our domain language. Then we isolate our dependencies. Next we introduce mocks to isolate our tests. Finally, we tie everything together within our main package.