2019-05-11 13:42:57 -05:00
|
|
|
## notes
|
2019-05-07 03:39:32 -05:00
|
|
|
|
2024-01-17 17:43:54 -06:00
|
|
|
# example dns protobuf code
|
|
|
|
# https://github.com/dnstap/golang-dnstap
|
|
|
|
|
2019-05-07 03:39:32 -05:00
|
|
|
After you do a
|
|
|
|
|
|
|
|
```
|
2019-05-11 13:42:57 -05:00
|
|
|
go get git.wit.com/wit/witProtobuf
|
2019-05-07 03:39:32 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
You must build the .go files by running protoc
|
|
|
|
|
|
|
|
```
|
2019-05-11 13:42:57 -05:00
|
|
|
cd ~/go/src/git.wit.com/wit/witProtobuf
|
2019-05-11 13:40:29 -05:00
|
|
|
make events.pb.go
|
|
|
|
```
|
2019-05-11 13:42:57 -05:00
|
|
|
### You must use the current protoc-gen-go to get version3 protobuf support
|
2019-05-11 13:40:29 -05:00
|
|
|
|
|
|
|
```
|
|
|
|
apt remove golang-goprotobuf-dev
|
|
|
|
|
|
|
|
go get -u github.com/golang/protobuf/protoc-gen-go
|
|
|
|
cd ~/go/src/github.com/golang/protobuf/protoc-gen-go
|
|
|
|
go install
|
2019-05-07 03:39:32 -05:00
|
|
|
```
|