Buf lint and code generation
Buf is a toolchain for validating protobuf schemas, checking compatibility, and generating language-specific code. In this course, buf lint applies STANDARD rules to the order contract, while buf generate invokes local Go plugins to create committed message and gRPC service code.
Minimal example
cd backend
buf lint
buf generate
git diff --exit-code gen/Learn this concept
Lesson 7.12 · Protobuf contracts in GoUsed in exercises
Exercise 7.13 · gRPC order servicePrerequisite conceptsProtocol Buffers