mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-06 00:55:51 +00:00
73ac885dab
Generate forwarding declarations for all types, consts, and vars in publicly imported files. Change-Id: I2f1041fa91b0ae18b1e123935951618b8d594f84 Reviewed-on: https://go-review.googlesource.com/136175 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
19 lines
566 B
Protocol Buffer
19 lines
566 B
Protocol Buffer
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
syntax = "proto3";
|
|
|
|
package goproto.protoc.import_public;
|
|
|
|
option go_package = "google.golang.org/proto/cmd/protoc-gen-go/testdata/import_public";
|
|
|
|
import public "import_public/sub/a.proto"; // Different Go package.
|
|
import public "import_public/b.proto"; // Same Go package.
|
|
|
|
message Public {
|
|
goproto.protoc.import_public.sub.M m = 1;
|
|
goproto.protoc.import_public.sub.E e = 2;
|
|
Local local = 3;
|
|
}
|