Documentation ¶
Index ¶
- Variables
- func IsChild(root, ref *URL) bool
- func Normalize(u *url.URL) *url.URL
- type NormalizeOptions
- type ParseDateFunc
- type QueryKeyBlacklist
- type URL
- func (u *URL) Date() (t time.Time, exists bool)
- func (u1 *URL) Equal(u2 *URL) bool
- func (u *URL) EscapedPath() string
- func (u *URL) Hostname() string
- func (u *URL) IsAbs() bool
- func (u *URL) MarshalBinary() (text []byte, err error)
- func (u *URL) MarshalText() ([]byte, error)
- func (u *URL) Parse(ref string) (*URL, error)
- func (u *URL) Path() string
- func (u *URL) Port() string
- func (u *URL) Query() url.Values
- func (u *URL) RequestURI() string
- func (u *URL) ResolveReference(ref *URL) *URL
- func (u *URL) Root() string
- func (u *URL) Scheme() string
- func (u *URL) String() string
- func (u *URL) UnmarshalBinary(text []byte) error
- func (u *URL) ValueSet(key, value string) *URL
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultQueryKeyBlacklist = NewQueryKeyBlacklist([]string{
"email_subscriber",
"utm_campaign",
"utm_medium",
"utm_source",
})
Functions ¶
Types ¶
type NormalizeOptions ¶ added in v0.0.6
type QueryKeyBlacklist ¶
type QueryKeyBlacklist struct {
// contains filtered or unexported fields
}
func NewQueryKeyBlacklist ¶
func NewQueryKeyBlacklist(keys []string) *QueryKeyBlacklist
func (*QueryKeyBlacklist) Add ¶
func (bl *QueryKeyBlacklist) Add(key string) *QueryKeyBlacklist
func (*QueryKeyBlacklist) Del ¶
func (bl *QueryKeyBlacklist) Del(key string) *QueryKeyBlacklist
func (*QueryKeyBlacklist) Keys ¶
func (bl *QueryKeyBlacklist) Keys() []string
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
func ParseRequestURI ¶
func (*URL) EscapedPath ¶
func (*URL) MarshalBinary ¶ added in v0.0.6
func (*URL) MarshalText ¶ added in v0.1.3
func (*URL) RequestURI ¶
func (*URL) ResolveReference ¶
func (*URL) UnmarshalBinary ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.