mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-21 10:18:21 -05:00
78064e6bab
Signed-off-by: Christian Richter <crichter@owncloud.com>
13 lines
212 B
Go
13 lines
212 B
Go
package net
|
|
|
|
import (
|
|
"net/url"
|
|
)
|
|
|
|
// EncodePath encodes the path of a url.
|
|
//
|
|
// slashes (/) are treated as path-separators.
|
|
func EncodePath(path string) string {
|
|
return (&url.URL{Path: path}).EscapedPath()
|
|
}
|