Documentation ¶
Overview ¶
Package goprotoc implements the goprotoc command logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶ added in v0.3.0
RegisterPlugin registers the name of an in-process goprotoc plugin. The given name should not include the "protoc-gen-" prefix that a plugin binary name would have. If the command-line contains a "-plugin" argument to configure the named output type, that will be respected and the in-process plugin will not be used. This can be used to override the use of "protoc" as the source of code gen for Java, C++, Python, etc.
If function will panic if the given name already has an in-process plugin registered.
This function is not thread-safe. It should be invoked during program initialization, before other functions in this package are invoked to run the goprotoc tool.
Types ¶
This section is empty.