-
|
I'm migrating from Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
pgtype.JSONB was intentionally removed as it was superfluous. As far as examples, you could look at |
Beta Was this translation helpful? Give feedback.
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.