MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / turn

Function turn

service/permit-type/driver.go:70–79  ·  view source on GitHub ↗
(vs []*Target)

Source from the content-addressed store, hash-verified

68}
69
70func turn(vs []*Target) map[PermitType]map[string]*Target {
71 rs := make(map[PermitType]map[string]*Target)
72 for _, v := range vs {
73 if _, has := rs[v.Type]; !has {
74 rs[v.Type] = make(map[string]*Target)
75 }
76 rs[v.Type][v.Name] = v
77 }
78 return rs
79}

Callers 1

CompleteLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected