24 lines
354 B
Protocol Buffer
24 lines
354 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package hello;
|
||
|
option go_package="gitlab.com/go-course-project/go17/skills/protobuf";
|
||
|
|
||
|
// type HelloRequest struct {
|
||
|
// MyName string `json:"my_name"`
|
||
|
// }
|
||
|
|
||
|
// type HelloResponse struct {
|
||
|
// Message string `json:"message"`
|
||
|
// }
|
||
|
|
||
|
message HelloRequest {
|
||
|
string my_name = 1;
|
||
|
}
|
||
|
|
||
|
message HelloResponse {
|
||
|
string message = 1;
|
||
|
}
|
||
|
|
||
|
|
||
|
|