package embedcheck
import "github.com/gogo/protobuf/plugin/embedcheck"
The embedcheck plugin is used to check whether embed is not used incorrectly. For instance: An embedded message has a generated string method, but the is a member of a message which does not. This causes a warning. An error is caused by a namespace conflict.
It is enabled by the following extensions:
- embed
- embed_all
For incorrect usage of embed with tests see:
github.com/gogo/protobuf/test/embedconflict
Index ¶
Functions ¶
func NewPlugin ¶
func NewPlugin() *plugin
Source Files ¶
- Version
- v1.2.1
- Published
- Feb 18, 2019
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.