build_protos.sh
build_protos.sh - Overview
This script compiles the wal.proto
file using the protoc
compiler with the Go plugin, generating Go source code in the current directory.
Detailed Documentation
The script executes the following command:
protoc --go_out=. ./internal/wal/wal.proto
- Purpose: Compiles the
wal.proto
protocol buffer definition file. - Parameters:
--go_out=.
: Specifies the Go output plugin and sets the output directory to the current directory (.
)../internal/wal/wal.proto
: Specifies the input protocol buffer definition file.
- Returns: Generates Go source code files based on the protobuf definition in the current directory.