Files
QSfera/services/webdav/pkg/net/net.go
T
2022-06-27 14:05:36 +02: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()
}