protoc_middleman_go: addressbook.proto mkdir -p tutorial # make directory for go package,defined in .proto protoc $$PROTO_PATH --go_out=tutorial addressbook.proto @touch protoc_middleman_go
go_mod: go mod init github.com/protocolbuffers/protobuf/examples go mod tidy
add_person_go: add_person.go protoc_middleman_go go_mod go build -o add_person_go add_person.go
add_person_gotest: add_person_test.go add_person_go go_mod go test add_person.go add_person_test.go
list_people_go: list_people.go protoc_middleman_go go_mod go build -o list_people_go list_people.go
list_people_gotest: list_people.go list_people_go go_mod go test list_people.go list_people_test.go
// See README.txt for information and build instructions. // // Note: START and END tags are used in comments to define sections used in // tutorials. They are not part of the syntax for Protocol Buffers. // // To get an in-depth walkthrough of this file and the related examples, see: // https://developers.google.com/protocol-buffers/docs/tutorials