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

Method GetMandatory

validator/validator.pb.go:1637–1642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1635}
1636
1637func (x *AttrSpec) GetMandatory() bool {
1638 if x != nil && x.Mandatory != nil {
1639 return *x.Mandatory
1640 }
1641 return false
1642}
1643
1644func (x *AttrSpec) GetMandatoryOneof() string {
1645 if x != nil && x.MandatoryOneof != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected