Skip to content

Instantly share code, notes, and snippets.

@yangzh
Last active February 25, 2020 23:56
Show Gist options
  • Save yangzh/57c08bc8bde18a32286024d112348bb0 to your computer and use it in GitHub Desktop.
Save yangzh/57c08bc8bde18a32286024d112348bb0 to your computer and use it in GitHub Desktop.
typical diff example
'$ diff a.proto b.proto -y
syntax = "proto3"; syntax = "proto3";
package some.package; package some.package;
option java_package = "some.package"; option java_package = "some.package";
option go_package = "some/package"; option go_package = "some/package";
message EchoRequest { message EchoRequest {
string user = 1; string user = 1;
// The greeting from user. // The greeting from user.
string greet = 2; string greet = 2;
} }
message EchoResponse { message EchoResponse {
// The greeting echo. // The greeting echo.
string echo = 1; string echo = 1;
> // Added later for addressing user.
> string user = 3;
>
// The timestamp for the echo. // The timestamp for the echo.
uint64 timestamp = 2; uint64 timestamp = 2;
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment