Working with Postgres JSONB in Go
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 functions:
Scan(src any) error -> Move data from DB to Go struct
Value() -> Return the JSON encoding that sto...
redhoyasa.hashnode.dev1 min read