()
| 42 | ) |
| 43 | |
| 44 | func 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 | } |
| 53 | func (p PermitType) KeyOf(v string) string { |
| 54 | return fmt.Sprint(p.Name(), ":", v) |
| 55 | } |
nothing calls this directly
no outgoing calls
no test coverage detected