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

Function init

service/permit-type/type.go:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42)
43
44func init() {
45 if len(names) != int(maxLength) {
46 panic("init permit error")
47 }
48 for i := Invalid; i < maxLength; i++ {
49 indexMap[names[i]] = i
50 }
51
52}
53func (p PermitType) KeyOf(v string) string {
54 return fmt.Sprint(p.Name(), ":", v)
55}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected