protoc-gen-gotag (PGGT) PGGT is a protoc plugin used to add/replace struct tags on generated protobuf messages. Get it usinggo get -u github.com/amsokol/protoc-gen-gotagIt supports the following features, Add/Replace Tags New tags like xml, sql, bson etc... can be added to struct...
Breadcrumbs protoc-gen-go-tag / main.goTop File metadata and controls Code Blame 249 lines (220 loc) · 4.79 KB Raw package main import ( "bytes" "errors" "go/ast" "go/format" "go/parser" "go/token" "io" "log" "os" "path/filepath" "strings" "github.com/fatih/structtag" )...
protoc-gen-go-tag example1.pb.go example2.pb.go ...messageExample{// @tag: uri; binding:requiredint64id=1;// @tag: binding:min=5,max=10stringname=2; } // xx.pb.gotypeExamplestruct{stateprotoimpl.MessageStatesizeCacheprotoimpl.SizeCacheunknownFieldsprotoimpl.UnknownFields// @tag: uri;...
Breadcrumbs protoc-gen-go-tag / go.mod Latest commit Cannot retrieve latest commit at this time. HistoryHistory File metadata and controls Code Blame 5 lines (3 loc) · 95 Bytes Raw module github.com/plsenp/protoc-gen-go-tag go 1.17 require github.com/fatih/structtag v1.2.0 1 2 3...
testedhttps://github.com/srikrsna/protoc-gen-gotag it works withbuf buf.gen.yaml version:v1beta1plugins: -name:goout:.opt:paths=source_relative-name:gotagout:.opt:paths=source_relative-name:go-grpcout:.opt:paths=source_relative,require_unimplemented_servers=true-name:validateout:.opt:lang=...
protoc v3.12.0 is going to add experimental support for the optional annotation to proto3 (see RC: https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0-rc1). We may need to update our generator(s) (protoc-gen-grpc-gateway, protoc-gen-swagger). Doc for adding this ability ...
In this repositoryAll GitHub↵ Jump to↵ Sign in Sign up gogo/protobufPublic Notifications Fork716 Star5.3k Code Issues186 Pull requests40 Actions Projects Security Insights More New issue Jump to bottom How can I use jsontag with protoc-gen-gofast?#643 ...
$' - '^spew\.Dump$' funlen: lines: 230 statements: 120 govet: check-shadowing: true whitespace: multi-func: true lll: line-length: 160 gomnd: # don't include the "operation", "argument" and "assign" checks: - case - condition - return goconst: ignore-tests: true gocyclo: # ...