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
- Host: GitHub
- URL: https://github.com/yaoguangduan/protosync
- Owner: yaoguangduan
- Created: 2024-07-27T08:00:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T08:03:29.000Z (over 1 year ago)
- Last Synced: 2026-01-12T02:22:48.837Z (5 months ago)
- Topics: data, golang, protobuf, sync
- Language: Go
- Homepage:
- Size: 43.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
}
```