MCPcopy Create free account
hub / github.com/ampproject/amphtml / UnmarshalJSON

Method UnmarshalJSON

validator/validator.pb.go:1090–1097  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

1088
1089// Deprecated: Do not use.
1090func (x *ValidationError_Code) UnmarshalJSON(b []byte) error {
1091 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
1092 if err != nil {
1093 return err
1094 }
1095 *x = ValidationError_Code(num)
1096 return nil
1097}
1098
1099// Deprecated: Use ValidationError_Code.Descriptor instead.
1100func (ValidationError_Code) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
ValidationError_CodeTypeAlias · 0.85

Tested by

no test coverage detected