(name string)
| 140 | } |
| 141 | |
| 142 | func splitRA(name string) (resource string, action string) { |
| 143 | parts := strings.SplitN(name, ":", 2) |
| 144 | if len(parts) != 2 { |
| 145 | return name, "" |
| 146 | } |
| 147 | return parts[0], parts[1] |
| 148 | } |
| 149 | |
| 150 | func pascal(s string) string { |
| 151 | // Replace non-identifier separators with spaces, then Title-case and strip. |