Files
QSfera/extensions/webdav/pkg/net/net.go
T
2022-04-14 11:56:26 +00:00

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()
}