|
|
|
@ -80,9 +80,9 @@ const (
|
|
|
|
func (k ReportKind) message() string {
|
|
|
|
func (k ReportKind) message() string {
|
|
|
|
switch k {
|
|
|
|
switch k {
|
|
|
|
case OmitEmptyUnsupportedInV1:
|
|
|
|
case OmitEmptyUnsupportedInV1:
|
|
|
|
return "uses `omitempty` on an unspported type in json/v1; should probably use `omitzero` instead"
|
|
|
|
return "uses `omitempty` on an unsupported type in json/v1; should probably use `omitzero` instead"
|
|
|
|
case OmitEmptyUnsupportedInV2:
|
|
|
|
case OmitEmptyUnsupportedInV2:
|
|
|
|
return "uses `omitempty` on an unspported type in json/v2; should probably use `omitzero` instead"
|
|
|
|
return "uses `omitempty` on an unsupported type in json/v2; should probably use `omitzero` instead"
|
|
|
|
case OmitEmptyShouldBeOmitZero:
|
|
|
|
case OmitEmptyShouldBeOmitZero:
|
|
|
|
return "should use `omitzero` instead of `omitempty`"
|
|
|
|
return "should use `omitzero` instead of `omitempty`"
|
|
|
|
case OmitEmptyShouldBeOmitZeroButHasIsZero:
|
|
|
|
case OmitEmptyShouldBeOmitZeroButHasIsZero:
|
|
|
|
|