Releases: favadi/protoc-go-inject-tag
Releases · favadi/protoc-go-inject-tag
v1.4.0: support for removing gotag annotations/comments
What's Changed
- fix the install command by @hackneal in #54
- add flag
remove_tag_comment
to remove gotag annotations by @superqtqt in #55
New Contributors
- @hackneal made their first contribution in #54
- @superqtqt made their first contribution in #55
Full Changelog: v1.3.0...v1.4.0
v1.3.0: trailing comments, @gotags field & more
Release highlights:
Added support for trailing comments (comments that follow a field, rather than being above the field):
// file: test.proto
syntax = "proto3";
package pb;
option go_package = "/pb";
message IP {
string Address = 1; // @gotags: valid:"ip"
string MAC = 2; // @gotags: validate:"omitempty"
}
New format for specifying a list of tags to be added:
// file: test.proto
syntax = "proto3";
package pb;
option go_package = "/pb";
message IP {
// @gotags: valid:"ip"
string Address = 1;
// Or:
string MAC = 2; // @gotags: validate:"omitempty"
}
Deprecations
Some previous cli flags and tags have been marked as deprecated. To see more, check out the README.
For a full list of changes, see here.
v1.2.0: Glob file matching and comment prefixing
Thank @lrstanley for contributing following PRs:
v1.1.0: Upgrade golang/protobuf to v1.4.2 (#36)
* upgrade github.com/golang/protobuf dependency to v1.4.2 * add protoc-go-inject-tag to code_gen.sh to test inject tags * update vendor with new version of golang/protobuf for travis * update travis with newer version of go * update test case with regex for more stable tests