package defaultcheck

import "github.com/gogo/protobuf/plugin/defaultcheck"

The defaultcheck plugin is used to check whether nullable is not used incorrectly. For instance: An error is caused if a nullable field:

An error is also caused if a field with a default value is used in a message:

It is enabled by the following extensions:

For incorrect usage of nullable with tests see:

github.com/gogo/protobuf/test/nullableconflict

Index

Functions

func NewPlugin

func NewPlugin() *plugin

Source Files

defaultcheck.go

Version
v1.0.0
Published
Feb 2, 2018
Platform
js/wasm
Imports
4 packages
Last checked
2 days ago

Tools for package owners.