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

Function NewNameScope

codegen/scope.go:34–39  ·  view source on GitHub ↗

NewNameScope creates an empty name scope.

()

Source from the content-addressed store, hash-verified

32
33// NewNameScope creates an empty name scope.
34func NewNameScope() *NameScope {
35 return &NameScope{
36 names: make(map[string]string),
37 counts: make(map[string]int),
38 }
39}
40
41// HashedUnique builds the unique name for key using name and - if not unique -
42// appending suffix and - if still not unique - a counter value. It returns

Callers 15

TestGoTypeDefFunction · 0.92
ExampleServerFunction · 0.92
dummyMultipartFileFunction · 0.92
analyzeMethod · 0.92
ExampleCLIFunction · 0.92
TestProtoBufTransformFunction · 0.92
exampleServerFunction · 0.92
analyzeMethod · 0.92

Calls

no outgoing calls