Skip to content

Releases: favadi/protoc-go-inject-tag

v1.4.0: support for removing gotag annotations/comments

12 Aug 17:28
v1.4.0
0a17bad
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0: trailing comments, @gotags field & more

17 Aug 00:30
Compare
Choose a tag to compare

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

10 Aug 14:06
018fc7a
Compare
Choose a tag to compare

v1.1.0: Upgrade golang/protobuf to v1.4.2 (#36)

17 Jun 10:47
d0943c8
Compare
Choose a tag to compare
* 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