gomodifytags
gomodifytags copied to clipboard
Go tool to modify struct field tags
I have been unable to download and install the gomodifytags package automatically via the ```install all``` option and when I attempt to do it manually via the ```go install github.com/fatih/gomodifytags@latest```...
This PR moves the `gomodifytags` tool into its package to be imported by other applications (i.e.: `gopls`). It's currently deliberately put under `internal`, as I want to make sure it...
### OVERVIEW So, have to say I love this tool. Thank you for your work on this! I am in the middle of a major refactor of about 50 services...
## Use external config file when we use editors like vscode to add tags, the vscode can only add json tags for us, there is no way to change the...
Is it somehow possible to add tags with comma eg. with `mapstructure`: ``` type Friend struct { Person `mapstructure:",squash"` } ``` I tried this but then squash is treated as...
for example: ``` gomodifytags bla.go -w -field-regex '.*Id' -add-options json=string gomodifytags bla.go -w -field-regex '.*At' -add-options json=string ``` those will modify only fields that ends with `Id` or `At`
I'd like to have the ability to change the defaults of the executable, e.g. to make the default transformation be camelCase instead of snake_case. My proposal would be to introduce...
In my project, a also need to gen code with this tool. i want to use regular path match files. by this change, can use tool by command: ```sh gomodifytags...
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.7.0 to 0.11.0. Release notes Sourced from golang.org/x/tools's releases. gopls/v0.11.0 This is a small release containing new integrations of vulnerability analysis. Vulnerability analysis for go.mod files can...
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...