#go
Read more stories on Hashnode
Articles with this tag
Background When I was using GORM as the ORM in Go, I discovered that we cannot update a field into NULL with struct, even though we use a pointer as...
Background Suppose I want to store and read a JSONB/JSON column from Postgres, how do I do it? Solution Make the data type implements these...
When using context in Go, I used to write this kind of context keys. type contextKeyType string const key1 = contextKeyType("key1") const key2 =...
Suppose we have the following struct in your Go project. type Blogpost struct { Title string `json:"title"` Tags []string ...
Overview Suppose we have the following struct: type Blogpost struct { Title string Tags []string } We want to encode it into JSON and make...