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

Method UnmarshalJSON

validator/validator.pb.go:500–507  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

498
499// Deprecated: Do not use.
500func (x *HtmlFormat_Code) UnmarshalJSON(b []byte) error {
501 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
502 if err != nil {
503 return err
504 }
505 *x = HtmlFormat_Code(num)
506 return nil
507}
508
509// Deprecated: Use HtmlFormat_Code.Descriptor instead.
510func (HtmlFormat_Code) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
HtmlFormat_CodeTypeAlias · 0.85

Tested by

no test coverage detected