Initial QSfera import
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user