(absolutePath, relativePath string)
| 133 | } |
| 134 | |
| 135 | func joinPaths(absolutePath, relativePath string) string { |
| 136 | if relativePath == "" { |
| 137 | return absolutePath |
| 138 | } |
| 139 | |
| 140 | finalPath := path.Join(absolutePath, relativePath) |
| 141 | if lastChar(relativePath) == '/' && lastChar(finalPath) != '/' { |
| 142 | return finalPath + "/" |
| 143 | } |
| 144 | return finalPath |
| 145 | } |
| 146 | |
| 147 | func resolveAddress(addr []string) string { |
| 148 | switch len(addr) { |