Golang: one function, one argument – multiple types

For better or for worse, Golang is an extremely simple language. It lacks some of the constructs other languages has. One of these features is generics (which at the time of writing, is about to be included in the language, though it hasn't hit production yet). As a refresher, generics allow you to define variables … Continue reading Golang: one function, one argument – multiple types

Nugget post: Registering interfaces with Gin-gonic Sessions

When building a Gin-gonic based web application, you'll probably come across a situation where you'd like to store information about the request in a session - essentially anything that requires HTTP cookies. Gin+gonic provides the "sessions" middleware to address this: https://github.com/gin-contrib/sessions Gin middleware for session management with multi-backend support: - cookie-based - Redis - memcached … Continue reading Nugget post: Registering interfaces with Gin-gonic Sessions