A quick addendum to 3 dots in 4 places, which asks: Can you name four places where three dots (...) are used in Go? A quick TL;DR of the above is: Variadic function paramatersThat is, a function that takes a variable number of parameters - e.g. func RandomStrings( arguments ...string) Arguments to variadic functionsThis is similar to … Continue reading 3 dots in 5 places #golang
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
You must be logged in to post a comment.