Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDebugEnabled ¶
Types ¶
type ContextAware ¶ added in v0.1.0
type DefaultURLComparer ¶ added in v0.1.0
type DefaultURLComparer struct{}
DefaultURLComparer is the default implementation of URLComparer.
func (DefaultURLComparer) EqualStrings ¶ added in v0.1.0
func (c DefaultURLComparer) EqualStrings(a, b string) (bool, error)
EqualStrings parses and compares two URL strings.
type URLComparer ¶ added in v0.1.0
type URLComparer interface {
// EqualStrings compares two URL strings after parsing and normalization.
EqualStrings(a, b string) (bool, error)
// EqualURLs compares two url.URL instances after normalization.
EqualURLs(a, b *url.URL) bool
}
URLComparer defines methods to safely compare URL strings and url.URL instances.
func NewURLComparer ¶ added in v0.1.0
func NewURLComparer() URLComparer
NewURLComparer returns a new DefaultURLComparer.
Click to show internal directories.
Click to hide internal directories.