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

Method Debug

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

Debug dumps the attribute to STDOUT in a goa developer friendly way.

(prefix string)

Source from the content-addressed store, hash-verified

661
662// Debug dumps the attribute to STDOUT in a goa developer friendly way.
663func (a *AttributeExpr) Debug(prefix string) { a.debug(prefix, make(map[*AttributeExpr]int), 0) }
664func (a *AttributeExpr) debug(prefix string, seen map[*AttributeExpr]int, indent int) {
665 tab := " "
666 tabs := strings.Repeat(tab, indent)

Callers 2

debugMethod · 0.45
TestProjectFunction · 0.45

Calls 1

debugMethod · 0.95

Tested by 1

TestProjectFunction · 0.36