When being Lazy pays off: Kotlin Objects and NoClassDefFoundError

One of my favorite concepts in Kotlin is the "Object" class. A quick refresh: A normal "class": class ExampleClass(arg1: String) An "object" is very similar in syntax as can be seen below, but comes with a crucial difference: it is a singleton. object ExampleObject There's a lot of debate around Singletons being evil or not... … Continue reading When being Lazy pays off: Kotlin Objects and NoClassDefFoundError

Advertisement

Inserting, reading, and updating JSON data in postgres using Golang GORM

This is a "Frankenstein" approach which worked well using a combination of methods found online (see references). On their own, each approach had a limitation, but together they ticked all the boxes. Assuming you have the following table defined as a struct within you Go program: type User struct { Name string Email string Attributes … Continue reading Inserting, reading, and updating JSON data in postgres using Golang GORM