pg icon indicating copy to clipboard operation
pg copied to clipboard

RegisterAppender Example

Open yannick opened this issue 5 years ago • 1 comments

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?

yannick avatar May 23 '20 15:05 yannick

Your example looks good. What do you think is sub-optimal or incorrect?

vmihailenco avatar May 29 '20 12:05 vmihailenco