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

Method UnmarshalJSON

validator/validator.pb.go:1150–1157  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

1148
1149// Deprecated: Do not use.
1150func (x *ValidationResult_Status) UnmarshalJSON(b []byte) error {
1151 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
1152 if err != nil {
1153 return err
1154 }
1155 *x = ValidationResult_Status(num)
1156 return nil
1157}
1158
1159// Deprecated: Use ValidationResult_Status.Descriptor instead.
1160func (ValidationResult_Status) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
ValidationResult_StatusTypeAlias · 0.85

Tested by

no test coverage detected