Add -transform lowercase
kokizzu opened this issue · 3 comments
kokizzu commented
background: I got some error while doing scanny.pgxscan.Select
because the column is not there
without the struct tag db:"createdat"
(actually it was CreatedAt on the struct) it shows error scanning all: scanning: scanning: doing scan: scanFn: scany: column: createdat
and gomodifytags only allow PascalCase
or snake_case
(only these two that most similar), where what i need is lowercase
.
arp242 commented
It should be pretty easy to create a patch for this: add a new lowercase
option in theswitch here: https://github.com/fatih/gomodifytags/blob/main/main.go#L390, update the docs, add a few tests.
kokizzu commented
yup already forked and add 3 more
arp242 commented
Why not send a PR? :-)