Skip to content

Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)

License

Notifications You must be signed in to change notification settings

veqryn/protobuf

Repository files navigation

protobuf

Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)

How to use

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:

protoc -I=/usr/local/include -I=${GOPATH}/src/github.com --go_out=plugins=grpc:${GOPATH}/src ${GOPATH}/src/github.com/myname/mypkg/mymessage.proto

About

Protobuf and gRPC helpers for working with Golang (for example an sql scan-able Timestamp well-known-type)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published