parsePath is a utility that verifies that the provided path is of a valid structure
(p string)
| 235 | |
| 236 | // parsePath is a utility that verifies that the provided path is of a valid structure |
| 237 | func parsePath(p string) string { |
| 238 | skip := 0 |
| 239 | for _, c := range p { |
| 240 | if c == '.' || c == '/' { |
| 241 | skip += 1 |
| 242 | continue |
| 243 | } |
| 244 | |
| 245 | break |
| 246 | } |
| 247 | return p[skip:] |
| 248 | } |
| 249 | |
| 250 | type PackComponentFileMap map[string]PackComponent |
| 251 |
no outgoing calls