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

Method UnmarshalJSON

validator/validator.pb.go:84–91  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

82
83// Deprecated: Do not use.
84func (x *AttrSpec_ValueSet) UnmarshalJSON(b []byte) error {
85 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
86 if err != nil {
87 return err
88 }
89 *x = AttrSpec_ValueSet(num)
90 return nil
91}
92
93// Deprecated: Use AttrSpec_ValueSet.Descriptor instead.
94func (AttrSpec_ValueSet) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
AttrSpec_ValueSetTypeAlias · 0.85

Tested by

no test coverage detected