cleanPath does path.Clean(p) but preserves any trailing slash.
(p string)
| 300 | |
| 301 | // cleanPath does path.Clean(p) but preserves any trailing slash. |
| 302 | func cleanPath(p string) string { |
| 303 | cleaned := path.Clean(p) |
| 304 | if cleaned != "/" && strings.HasSuffix(p, "/") { |
| 305 | cleaned = cleaned + "/" |
| 306 | } |
| 307 | return cleaned |
| 308 | } |
| 309 | |
| 310 | // tlsPlaceholderWrapper is a no-op listener wrapper that marks |
| 311 | // where the TLS listener should be in a chain of listener wrappers. |
no outgoing calls
no test coverage detected