twirp

How do I correctly include golang protobuf/ptypes for protoc when using dep?

余生长醉 提交于 2019-12-24 11:35:52
问题 I'm having trouble including the google/protobuf/timestamp.proto well known type, when using dep. I get an error: google/protobuf/timestamp.proto: File not found service.proto: syntax = "proto3"; import "google/protobuf/timestamp.proto"; package com.rynop.platform; option go_package = "rpc"; service PlatformService { rpc Test(EmptyMessage) returns (EmptyMessage); } message EmptyMessage { } message A { string summary = 1; google.protobuf.Timestamp start = 2; } message B { repeated A foos = 1;