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

Method UnmarshalJSON

validator/validator.pb.go:231–238  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

229
230// Deprecated: Do not use.
231func (x *AmpLayout_Layout) UnmarshalJSON(b []byte) error {
232 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
233 if err != nil {
234 return err
235 }
236 *x = AmpLayout_Layout(num)
237 return nil
238}
239
240// Deprecated: Use AmpLayout_Layout.Descriptor instead.
241func (AmpLayout_Layout) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
AmpLayout_LayoutTypeAlias · 0.85

Tested by

no test coverage detected