github.com/whiteCcinn/protobuf-go@v1.0.9/cmd/protoc-gen-go/testdata/imports/test_import_all.proto (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package test; 8 9 option go_package = "github.com/whiteCcinn/protobuf-go/cmd/protoc-gen-go/testdata/imports"; 10 11 // test_a_1/m*.proto are in the same Go package and proto package. 12 // test_a_*/*.proto are in different Go packages, but the same proto package. 13 // test_b_1/*.proto are in the same Go package, but different proto packages. 14 // fmt/m.proto has a package name which conflicts with "fmt". 15 import "cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto"; 16 import "cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto"; 17 import "cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto"; // unused in this file 18 import "cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto"; // unused in this file 19 import "cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto"; 20 import "cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto"; 21 import "cmd/protoc-gen-go/testdata/imports/fmt/m.proto"; 22 23 message All { 24 test.a.M1 am1 = 1; 25 test.a.M2 am2 = 2; 26 test.b.part1.M1 bm1 = 5; 27 test.b.part2.M2 bm2 = 6; 28 fmt.M fmt = 7; 29 }