Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFromPath ¶
GenerateFromPath 从指定路径生成 Protobuf 代码。
func RunBufDepUpdate ¶
RunBufDepUpdate 在指定目录执行 `buf dep update`,并将输出转发到标准输出/错误。
func RunBufGenerate ¶
RunBufGenerate 在指定目录执行 `buf generate --template <template>`。 如果 template 为空,使用常量 `defaultBufGenConfigFile`。 在执行前会调用 ensureBufInstalled 确保 buf 可用,命令输出会直接写入标准输出/错误。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.