Versions in this module Expand all Collapse all v0 v0.6.0 Dec 16, 2024 Changes in this version + type AbsoluteURL struct + func AbsoluteURLFromGo(url *gurl.URL) (AbsoluteURL, error) + func AbsoluteURLFromString(url string) (AbsoluteURL, error) + func (u AbsoluteURL) Equivalent(url URL) bool + func (u AbsoluteURL) Extension() string + func (u AbsoluteURL) Filename() string + func (u AbsoluteURL) Fragment() string + func (u AbsoluteURL) IsFile() bool + func (u AbsoluteURL) IsHTTP() bool + func (u AbsoluteURL) Normalize() URL + func (u AbsoluteURL) Path() string + func (u AbsoluteURL) Raw() *gurl.URL + func (u AbsoluteURL) Relativize(url URL) URL + func (u AbsoluteURL) RemoveFragment() URL + func (u AbsoluteURL) RemoveQuery() URL + func (u AbsoluteURL) Resolve(url URL) URL + func (u AbsoluteURL) Scheme() Scheme + func (u AbsoluteURL) String() string + func (u AbsoluteURL) ToFilepath() string + type RelativeURL struct + func RelativeURLFromGo(url *gurl.URL) (RelativeURL, error) + func RelativeURLFromString(url string) (RelativeURL, error) + func URLFromDecodedPath(path string) (RelativeURL, error) + func (u RelativeURL) Equivalent(url URL) bool + func (u RelativeURL) Extension() string + func (u RelativeURL) Filename() string + func (u RelativeURL) Fragment() string + func (u RelativeURL) Normalize() URL + func (u RelativeURL) Path() string + func (u RelativeURL) Raw() *gurl.URL + func (u RelativeURL) Relativize(url URL) URL + func (u RelativeURL) RemoveFragment() URL + func (u RelativeURL) RemoveQuery() URL + func (u RelativeURL) Resolve(url URL) URL + func (u RelativeURL) String() string + type Scheme string + const SchemeData + const SchemeFTP + const SchemeFile + const SchemeGS + const SchemeHTTP + const SchemeHTTPS + const SchemeOPDS + const SchemeS3 + func SchemeFromString(s string) Scheme + func (s Scheme) IsCloud() bool + func (s Scheme) IsFile() bool + func (s Scheme) IsHTTP() bool + func (s Scheme) String() string + type URL interface + Equivalent func(url URL) bool + Extension func() string + Filename func() string + Fragment func() string + Normalize func() URL + Path func() string + Raw func() *gurl.URL + Relativize func(url URL) URL + RemoveFragment func() URL + RemoveQuery func() URL + Resolve func(url URL) URL + String func() string + func FromEPUBHref(href string) (URL, error) + func FromFilepath(path string) (URL, error) + func FromLocalFile(file *os.File) (URL, error) + func MustURLFromString(url string) URL + func URLFromGo(url *gurl.URL) (URL, error) + func URLFromString(url string) (URL, error)