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

Method UnmarshalJSON

validator/validator.pb.go:618–625  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

616
617// Deprecated: Do not use.
618func (x *ErrorCategory_Code) UnmarshalJSON(b []byte) error {
619 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
620 if err != nil {
621 return err
622 }
623 *x = ErrorCategory_Code(num)
624 return nil
625}
626
627// Deprecated: Use ErrorCategory_Code.Descriptor instead.
628func (ErrorCategory_Code) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
ErrorCategory_CodeTypeAlias · 0.85

Tested by

no test coverage detected