blog.jonathanchannon.com
Jonathan Channon Blog
http://blog.jonathanchannon.com/page2
Curated by Jonathan Channon. Introducing Negotiator - a GoLang content negotiation library. November 16, 2015. And eventually decided upon Goji. Introducing PoGo - a GoLang, Twitter favourites to Pocket importer. October 27, 2015. August 07, 2015. In my day job I'm responsible for a HTTP API (notice I didn't use REST) and some months ago I spoke to Glenn Block around a general discussion about hypermedia. Glenn put this on YouTube if you want to watch it. April 27, 2015. November 24, 2014. I was going to...
whatsyourfavorite.net
What's your favorite Go web framework | WYF
https://whatsyourfavorite.net/topic/1/what-s-your-favorite-go-web-framework
Please enter your username or email address. You will receive a link to create a new password via email. Whats your favorite Go web framework. From slim enhancement of go http package to fully featured framework including ORM and such. Https:/ revel.github.io/. A high-productivity web framework for the Go language. An open source framework to build and develop your applications in the Go way. Go: Building Web Applications with Beego. Https:/ gin-gonic.github.io/gin/. A web microframework for Golang.
elithrar.github.io
go, web, go · On the web, Go, and building things
http://elithrar.github.io/page2
Go, web, go. On the web, Go, and building things. Serving a Vue, React or Ember JavaScript Application with Go. Testing Your (HTTP) Handlers in Go. Combining Custom Domains, Go Packages and Jekyll. HttpHandler and Error Handling in Go. 8226;••. I wrote an article a while back. On implementing custom handler types to avoid a few common problems with the existing. Func MyHandler(w http.ResponseWriter, r *http.Request). Having to remember to explicitly call a naked. You can either call. In your database pac...
avtok.com
Avtok. Interface Upgrades in Go
http://www.avtok.com/2014/11/05/interface-upgrades.html
Interface Upgrades in Go. November 5, 2014. Much has been written. They’re one of the language features I like best, providing a very pragmatic trade-off between the complexity of more powerful type systems and the anarchy of duck typing. If you’re not already familiar with Go or Go’s interfaces, I’d encourage you to read an introduction to Go. And to play around with the language a bit it’ll help you better understand the remainder of this post. The reason I call these sorts of casts interface upgrades ...
elithrar.github.io
HTTP Request Contexts & Go · go, web, go
http://elithrar.github.io/article/map-string-interface
Go, web, go. On the web, Go, and building things. HTTP Request Contexts and Go. 8226;••. How do we pass the maskedToken from here. To here, without relying on the overhead of a session store,. And without either handler being explicitly tied to the other? What about a CSRF token? Or an auth-key from a request header? We certainly don't want to re-write that logic in every handler! Theres three ways that Gos web libraries/frameworks have attacked the problem of request contexts:. A global map, with. We'll...
alexedwards.net
Context-Aware Handler Chains in Go (using Stack)
http://www.alexedwards.net/blog/handler-chains-using-stack
Context-Aware Handler Chains in Go. I've written a package for chaining context-aware handlers in Go, called Stack ( view it on Github. It was heavily inspired by Alice. What do you mean by 'context-aware'? If you're using a middleware pattern. To process HTTP requests in Go, you may want to share some data or. Between middleware handlers and your application handlers. For example you might want to:. To access the resource. Why make another package? I realised that the only time you need to worry about c...
elithrar.github.io
Custom Handlers and Avoiding Globals in Go Web Applications · go, web, go
http://elithrar.github.io/article/custom-handlers-avoiding-globals
Go, web, go. On the web, Go, and building things. Custom Handlers and Avoiding Globals in Go Web Applications. 8226;••. Ive also published a second article. About custom handlers that builds on the foundations here. Might be worth reading after you finish this! Package is extremely flexible, thanks to the fact that it centres on the http.Handler. Creating Our Custom Handler Type. Net/http provides a basic. Type that is just. Func(w http.ResponseWriter, r *http.Request). First, lets highlight the problem:.
elithrar.github.io
http.Handler and Error Handling in Go · go, web, go
http://elithrar.github.io/article/http-handler-error-handling-revisited
Go, web, go. On the web, Go, and building things. HttpHandler and Error Handling in Go. 8226;••. I wrote an article a while back. On implementing custom handler types to avoid a few common problems with the existing. Func MyHandler(w http.ResponseWriter, r *http.Request). Signature you often see. Its a useful general purpose handler type that covers the basics, but—as with anything generic—there are a few shortcomings:. Having to remember to explicitly call a naked. You can either call. In your database ...