Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrOutputFilenameCollision indicates two proto files produce the same output filename. ErrOutputFilenameCollision = AppError("output filename collision") // ErrNameEmpty indicates an update_message or create_message annotation has an empty name. ErrNameEmpty = AppError("name must not be empty") // ErrInvalidName indicates an update_message or create_message annotation name is not a valid proto identifier. ErrInvalidName = AppError("not a valid proto identifier") // ErrNoProtoFiles indicates the input directory contains no .proto files. ErrNoProtoFiles = AppError("no .proto files found") )
Functions ¶
func RunGenProto ¶
RunGenProto implements the gen-proto subcommand: scans the input directory, generates *.entity.proto / *.create.proto / *.update.proto from schema files (those carrying option (gcode.schema) = {};) into the same directory.
Types ¶
Click to show internal directories.
Click to hide internal directories.