Chapter 23: Protobuf Style Guide and API Design

File Organization

// One service per file, messages can be split or co-located
// Package = company.product.version
syntax = "proto3";
package mycompany.users.v1;
option go_package = "github.com/mycompany/users/v1;usersv1";

Naming Rules

Field Number Best Practices