|
I'm migrating from Questions
|
Replies: 1 comment
|
pgtype.JSONB was intentionally removed as it was superfluous. As far as examples, you could look at |
|
I'm migrating from Questions
|
|
pgtype.JSONB was intentionally removed as it was superfluous. As far as examples, you could look at |
jsonandjsonbare automatically unmarshalled. You should use whatever Go type you want the it unmarshalled to, orjson.RawMessageis you just want the bytes.pgtype.JSONB was intentionally removed as it was superfluous.
As far as examples, you could look at
json_test.goandjsonb_test.go, but normal usage is pretty straight forward. Scan into your target Go type directly.