An open API service indexing awesome lists of open source software.

https://github.com/yaoguangduan/protosync

generate go code from protobuf ,sync proto dirty data
https://github.com/yaoguangduan/protosync

data golang protobuf sync

Last synced: 3 months ago
JSON representation

generate go code from protobuf ,sync proto dirty data

Awesome Lists containing this project

README

          

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