I’m wondering why using url.PathEscape is not escaping the “@” character
package main
import (
"fmt"
"net/url"
)
func main() {
path := url.PathEscape("[email protected]")
fmt.Println(path) //[email protected]
}
I understand the @ character is reserved for the path component of an URI, why is it not escaping it?