https://github.com/veqryn/protobuf
Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)
https://github.com/veqryn/protobuf
Last synced: about 1 month ago
JSON representation
Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)
- Host: GitHub
- URL: https://github.com/veqryn/protobuf
- Owner: veqryn
- License: mpl-2.0
- Created: 2019-07-24T23:37:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T18:50:33.000Z (over 2 years ago)
- Last Synced: 2025-05-08T22:55:03.859Z (about 1 month ago)
- Language: Go
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protobuf
Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)### How to use
```proto
syntax = "proto3";package mypkg;
option go_package = "github.com/myname/mypkg";
import "veqryn/protobuf/timestamp.proto";
message MyMessage {
veqryn.protobuf.Timestamp my_time = 1;
}
```Then to compile, make sure to include the path to this repo like so:
```bash
protoc -I=/usr/local/include -I=${GOPATH}/src/github.com --go_out=plugins=grpc:${GOPATH}/src ${GOPATH}/src/github.com/myname/mypkg/mymessage.proto
```