Refactor code
This commit is contained in:
@@ -33,7 +33,7 @@ func ProtoToMap(pb proto.Message, idFix bool) map[string]interface{} {
|
|||||||
marshaler := jsonpb.Marshaler{
|
marshaler := jsonpb.Marshaler{
|
||||||
OrigName: true,
|
OrigName: true,
|
||||||
EnumsAsInts: false,
|
EnumsAsInts: false,
|
||||||
EmitDefaults: true,
|
EmitDefaults: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
s, _ := marshaler.MarshalToString(pb)
|
s, _ := marshaler.MarshalToString(pb)
|
||||||
|
|||||||
Reference in New Issue
Block a user