Monday, December 18, 2017

Proper way how-to marshal and unmarshal Golang structs within the Redis cache



Now this one will be really simple, and, regardless of that there are many ways how you can encode and decode structs, I’ve chosen JSON as a package for encoding and decoding simply because it’s very easy to read caches, you can use struct tags within and in general, I love JSON.

No comments:

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guar...