code: func slice(path string, start int) (segment string, next int) {
  	if len(path) == 0 || start < 0 || start >= len(path) {
  		return "", -1
  	}
  	end := strings.IndexRune(path[start:], '/')
  	if end == -1 {
  		return path[start:], -1
  	}
  	if path[start:start+end] == "/" {
  		return "", start + end + 1
  	}
  	return path[start : start+end], start + end + 1
  }
docs: // slices string into path segments performing 0 heap allocation