Skip to content

Commit

Permalink
exclude protobuf tags
Browse files Browse the repository at this point in the history
  • Loading branch information
borosr committed Jan 9, 2023
1 parent c91bbee commit f43f4ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/protoc-gen-go/internal_gengo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ func buildTags(wrappedTags string) [][2]string {
if len(submatch) != 3 {
continue
}
if submatch[1] == "protobuf_key" || submatch[1] == "protobuf_val" || submatch[1] == "protobuf" {
continue
}
tags = append(tags, [2]string{submatch[1], submatch[2]})
}
}
Expand Down

0 comments on commit f43f4ce

Please sign in to comment.