Skip to content

generate go code from protobuf ,sync proto dirty data

Notifications You must be signed in to change notification settings

yaoguangduan/protosync

Repository files navigation

protobuf tool to collect and merge all changes!
person := pbgen.NewPersonSync()
person.SetName("proto sync")
person.SetAge(1)
personProto := &pbgen.Person{}
person.MergeDirtyToPb(personProto)
fmt.Println(protojson.Format(personProto))
output:
{
  "age": 1,
  "name": "proto sync"
}

About

generate go code from protobuf ,sync proto dirty data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages