mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 18:25:46 +00:00
c7d07d9ba5
Copy generator.CamelCase for camel-casing names, with one change: Convert '.' in names to '_'. This removes the need for the CamelCaseSlice function which operates on a []string representing a name split along '.'s. Add protogen.Message. Reformat generated code. Add regenerate.bash, largely copied from regenerate.sh. Change-Id: Iecf0bfc43b552f53e458499a328b933b0c9c5f82 Reviewed-on: https://go-review.googlesource.com/130915 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
20 lines
450 B
Protocol Buffer
20 lines
450 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 = "proto2";
|
|
|
|
package goproto.protoc.proto2;
|
|
|
|
option go_package = "google.golang.org/proto/cmd/protoc-gen-go/testdata/proto2";
|
|
|
|
message Layer1 {
|
|
message Layer2 {
|
|
message Layer3 {
|
|
}
|
|
optional Layer3 l3 = 1;
|
|
}
|
|
optional Layer2 l2 = 1;
|
|
optional Layer2.Layer3 l3 = 2;
|
|
}
|