import "github.com/gogo/protobuf/plugin/oneofcheck"
The oneofcheck plugin is used to check whether oneof is not used incorrectly. For instance: An error is caused if a oneof field:
oneofcheck.go
func NewPlugin() *plugin