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

Method AddMeta

expr/attribute.go:637–642  ·  view source on GitHub ↗

AddMeta adds values to the meta field of the attribute.

(name string, vals ...string)

Source from the content-addressed store, hash-verified

635
636// AddMeta adds values to the meta field of the attribute.
637func (a *AttributeExpr) AddMeta(name string, vals ...string) {
638 if a.Meta == nil {
639 a.Meta = make(MetaExpr)
640 }
641 a.Meta[name] = append(a.Meta[name], vals...)
642}
643
644// DeleteMeta removes the metadata entry with the given name.
645func (a *AttributeExpr) DeleteMeta(name string) {

Callers 2

ConvertFileFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected