Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToProtoFilesMap ¶
func ToProtoFilesMap(req *pluginpb.CodeGeneratorRequest) map[string]*descriptorpb.FileDescriptorProto
toProtoFilesMap creates a map of file names to their corresponding FileDescriptorProto objects from a CodeGeneratorRequest. This map can be used to quickly access file descriptors by their names.
Parameters: req - A pointer to a CodeGeneratorRequest which contains the list of Proto files.
Returns: A map where the keys are file names and the values are pointers to FileDescriptorProto objects.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.