I'm using go
and the package uuid
to generate a uuid of type [16]byte
. However when I try to insert that uuid into my postgres
column of type uuid
I get the error converting argument $1 type: unsupported type [16]uint8, a array
. So apparently I should convert the uuid on the client before I insert it into the db. How should I do that? What type should I convert it to?
In short: What go
data type will work with uuid
in postgres
?