Skip to content

Tags: bmwtsn098/gomodifytags

Tags

v1.16.0

Toggle v1.16.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#87 from SirUela/add-titlecase

Add "Title Case" option

v1.15.0

Toggle v1.15.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#86 from fatih/fatih-add-quiet-mode

Add `--quiet` flag to suppress output to stdout

v1.14.0

Toggle v1.14.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#85 from fatih/fatih-add-old-sytle

Change `$field` keyword to `{field}`

v1.13.0

Toggle v1.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#64 from LeGEC/gv/extra-cases

Detect extra cases in struct declarations

v1.12.0

Toggle v1.12.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#75 from fatih/fatih/test-for-flag-redefinitions

Add test to detect duplicate flag names

v1.11.0

Toggle v1.11.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#74 from perrito666/add_prefix_to_column_name…

…_tag

Rename `format` to `template` to avoid clash

v1.10.0

Toggle v1.10.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
New Add/Remove prefix option (fatih#69)

* New Add/Remove prefix option

Some libraries like [the gorm ORM](https://github.com/go-gorm/gorm) or
the [gaum SQL query builder](https://github.com/shiftleftsecurity/gaum)
use a prefix in the tag name (ie `gorm:"column:struct_field"`,
gaum:"field_name=struct_field") to help ther Scanner/Valuer interact
with the sql library in go.
This PR adds the ability to add and remove said prefixes.
I used these two libraries as samples in the tests files to help
understand the rationale behind said feature to people reading without
context, hopefully this doesn't break any project convention.

* Add Readme section for prefix

* Replaced prefix with format

* Update main.go

Accepting fatih's suggestion on flag doc

Co-authored-by: Fatih Arslan <[email protected]>

* Update README.md

Accepting fatih's suggestion on `format` flag

Co-authored-by: Fatih Arslan <[email protected]>

* Update README.md

Accepting fatih's suggestion on readme secion title

Co-authored-by: Fatih Arslan <[email protected]>

* Rename formatting var to valueFormat

* Rename $value to $field for clarity

* Update readme too

Co-authored-by: Fatih Arslan <[email protected]>

v1.9.0

Toggle v1.9.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#71 from fatih/fatih/remove-vendor

Remove vendor folder, update CI Go version to 1.15

v1.8.0

Toggle v1.8.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#70 from fatih/dependabot/go_modules/github.c…

…om/fatih/structtag-1.2.0

Bump github.com/fatih/structtag from 1.0.0 to 1.2.0

v1.7.0

Toggle v1.7.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request fatih#68 from herryg91/add-modify-tags-by-struct-f…

…ield-name

Adding feature modify tags by struct field name