Skip to content

Instantly share code, notes, and snippets.

@monmohan
Last active May 7, 2021 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monmohan/e7e658ffe3b4ac2d6406e1a5e352aaf7 to your computer and use it in GitHub Desktop.
Save monmohan/e7e658ffe3b4ac2d6406e1a5e352aaf7 to your computer and use it in GitHub Desktop.
syntax='proto3';
package typedefs;
option go_package ='./typedefs';
message Patch{
message Copy{
int64 start =1;
int64 end=2;
}
message Insert{
bytes raw_bytes=1;
}
oneof op{
Copy copy_op=3;
Insert insert_op=4;
}
}
message Instructions{
repeated Patch operations=1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment