Closed tbruyelle closed 4 years ago
The PR looks good, there's just a bit of missing punctuation in a godoc comment. If you don't want to fix this I can fix it.
The PR looks good, there's just a bit of missing punctuation in a godoc comment. If you don't want to fix this I can fix it.
fixed :)
Thanks for this really nice contribution :)
When the shape of a geometry isn't defined (for example when you use the GEOMETRY postgis type), you can't use the scanners defined in encoding/wkb, you have to iterate over the results and invoke wkb.Marshal on the column.
This change introduces a new type wkb.Geom which can scan any kind of geometry shape.
I've added NOTEs about details I would like to discuss, please review them.
I've also added new examples to illustrate the usage, tell me if the example names are OK for you.