When using GORM to deal with mapping between DB table’s fields to their corresponding struct’s properties, most of the time we can rely on its...
There are numerous discussion and debates around different testing strategies, and it still feels hard to find consensus on what makes unit test. That...
The core requirement of this data structure: The cache serves as a key-value store and has some capacity We can put items to the cache until it...
Go JSON decoding is bit different than others again. It does not accept a string and return an object like JS or Python. Actually it does not return...
Read first: The "D" in SOLID As a follow up post, we will see how we actually structure the code end to end to conform to this DIP principle. We use...
Recently I reviewed a few good old articles around topics related to clean architecture. One of them is this interesting article A little architect,...