diff --git a/plugin/protoc-gen-marshal-zap/module.go b/plugin/protoc-gen-marshal-zap/module.go index dee7889..fb1b09d 100644 --- a/plugin/protoc-gen-marshal-zap/module.go +++ b/plugin/protoc-gen-marshal-zap/module.go @@ -6,7 +6,6 @@ import ( "os" "strings" - "github.com/golang/protobuf/protoc-gen-go/generator" marshal_zap "github.com/kei2100/protoc-gen-marshal-zap" pgs "github.com/lyft/protoc-gen-star" pgsgo "github.com/lyft/protoc-gen-star/lang/go" @@ -98,7 +97,7 @@ func processFields(fields []pgs.Field) ([]*protoField, error) { } pf.IsMask = mask - pf.Accessor = generator.CamelCase(field.Name().String()) + pf.Accessor = pgsgo.PGGUpperCamelCase(field.Name()).String() if _, ok := reservedKeywords[pf.Accessor]; ok { pf.Accessor += "_" } diff --git a/test/types/types.pb.go b/test/types/types.pb.go index cb86b9b..7b88354 100644 --- a/test/types/types.pb.go +++ b/test/types/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.17.3 +// protoc-gen-go v1.25.0-devel +// protoc v3.15.8 // source: test/types/types.proto package types diff --git a/test/types/types.proto b/test/types/types.proto index dbf5de5..1b864d5 100644 --- a/test/types/types.proto +++ b/test/types/types.proto @@ -92,4 +92,4 @@ message OtherType2 { string nested_string_val = 1; string nested_secret_val = 2 [(marshal_zap.mask) = true]; } -} \ No newline at end of file +}