MCPcopy Create free account
hub / github.com/goadesign/goa / HasDefaultValue

Method HasDefaultValue

expr/attribute.go:552–554  ·  view source on GitHub ↗

HasDefaultValue returns true if the attribute with the given name has a default value.

(attName string)

Source from the content-addressed store, hash-verified

550// HasDefaultValue returns true if the attribute with the given name has a
551// default value.
552func (a *AttributeExpr) HasDefaultValue(attName string) bool {
553 return a.GetDefault(attName) != nil
554}
555
556// GetDefault gets the default value for the child attribute with the given
557// name. It returns nil if the child attribute with the given name does not

Callers 5

IsPrimitivePointerMethod · 0.95
goTypeDefFunction · 0.80
transformObjectFunction · 0.80
transformObjectFunction · 0.80

Calls 1

GetDefaultMethod · 0.95

Tested by 1