4 ms·
There's enough built into Go that frameworks feel very unnecessary. The only thing I'd strongly recommend is Gorilla Mux: http://www.gorillatoolkit.org/pkg/mux
by buro9 14y ago
There's enough built into Go that frameworks feel very unnecessary.
The only thing I'd strongly recommend is Gorilla Mux: http://www.gorillatoolkit.org/pkg/mux http://www.gorillatoolkit.org/pkg/mux
And you can get an idea of how people build websites using Mux and Go by looking on github: https://github.com/jimmykuu/gopher https://github.com/jimmykuu/gopher
If you're very new to Go, then reading that last link repo you probably want to read these files in this order: https://github.com/jimmykuu/gopher/blob/master/src/server/main.go https://github.com/jimmykuu/gopher/blob/master/src/server/ma... https://github.com/jimmykuu/gopher/blob/master/src/gopher/server.go https://github.com/jimmykuu/gopher/blob/master/src/gopher/se... https://github.com/jimmykuu/gopher/blob/master/src/gopher/urls.go https://github.com/jimmykuu/gopher/blob/master/src/gopher/ur... and then to take a look at the files in this folder for the handlers and html/template calling: https://github.com/jimmykuu/gopher/tree/master/src/gopher https://github.com/jimmykuu/gopher/tree/master/src/gopher
- stock_toaster 14y agoSecond the Gorilla recommendation. Great toolkit.
- swah 14y agoIn older versions there seemed to be a websocket package, but I can't find it anymore - do you know what hapenned to it?
- buro9 14y agogo get code.google.com/p/go.net/websocket The html processing lives in there too: go get code.google.com/p/go.net/html If you see people refer to go.net, they mean that repo.