pg
pg copied to clipboard
RegisterAppender Example
Hi, i saw that https://github.com/go-pg/pg/pull/1401 got merged. it seems to also solve https://github.com/go-pg/pg/pull/1058 ? however its a bit unclear how to use it, what would i need to do to e.g. use googles protobuf timestamp? i did this: https://github.com/yannick/go-pg-pb/blob/master/timestamp/timestamp.go however i think its not optimal/correct
also why does RegisterAppender not accept a reflect.Type directly but only its private function?
Your example looks good. What do you think is sub-optimal or incorrect?