Next returns a new path by append part to the current path
(part string)
| 132 | |
| 133 | // Next returns a new path by append part to the current path |
| 134 | func (p Path) Next(part string) Path { |
| 135 | return Path(string(p) + pathSeparator + part) |
| 136 | } |
| 137 | |
| 138 | func (p Path) parts() []string { |
| 139 | return strings.Split(string(p), pathSeparator) |