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

Method GetRequiresUsage

validator/validator.pb.go:2896–2901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2894}
2895
2896func (x *ExtensionSpec) GetRequiresUsage() ExtensionSpec_ExtensionUsageRequirement {
2897 if x != nil && x.RequiresUsage != nil {
2898 return *x.RequiresUsage
2899 }
2900 return Default_ExtensionSpec_RequiresUsage
2901}
2902
2903// The HtmlFormat is the declared format in the top-level html tag, which
2904// prescribes a particular set of validation rules. This should be kept in sync

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected