Go API Versioning with Gorilla Mux
Code-Based Versioning Recently I had a problem where I needed to implement API versioning in code. The versions would share the vast majority of routes/handlers and I found that I wanted to re-use the base routes and modifying them slightly between versions.
Read more…Go Validation Tricks
As I’ve gotten more familiar with Go web programming, I’ve tried to solve the problem of form and payload validation a number of different ways. Coming from a Python background, I initially really liked the idea of using a validation method.
Read more…Go Handlers and State
Today I’d like to get a bit technical about things I’ve been learning and working on in the Go language Sometimes it’s helpful to pass additional state into a web handler function.
Read more…