Documentation ¶
Index ¶
- Variables
- type Url
- func (rb *Url) Free()
- func (u *Url) HasCredentials() bool
- func (u *Url) HasEmptyHostname() bool
- func (u *Url) HasHash() bool
- func (u *Url) HasHostname() bool
- func (u *Url) HasNonEmptyPassword() bool
- func (u *Url) HasNonEmptyUsername() bool
- func (u *Url) HasPassword() bool
- func (u *Url) HasPort() bool
- func (u *Url) HasSearch() bool
- func (u *Url) Hash() string
- func (u *Url) Host() string
- func (u *Url) Hostname() string
- func (u *Url) Href() string
- func (u *Url) Password() string
- func (u *Url) Pathname() string
- func (u *Url) Port() string
- func (u *Url) Protocol() string
- func (u *Url) Search() string
- func (u *Url) SetHash(s string)
- func (u *Url) SetHost(s string) bool
- func (u *Url) SetHostname(s string) bool
- func (u *Url) SetHref(s string) bool
- func (u *Url) SetPassword(s string) bool
- func (u *Url) SetPathname(s string) bool
- func (u *Url) SetPort(s string) bool
- func (u *Url) SetProtocol(s string) bool
- func (u *Url) SetSearch(s string)
- func (u *Url) SetUsername(s string) bool
- func (u *Url) Username() string
- func (u *Url) Valid() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyString = errors.New("empty url string")
View Source
var ErrInvalidUrl = errors.New("invalid url")
Functions ¶
This section is empty.
Types ¶
type Url ¶
type Url struct {
// contains filtered or unexported fields
}
func New ¶
parse the given string into a URL, a finalizer will be set to free the URL when it is no longer needed.
func NewWithBase ¶
parse the given strings into a URL, a finalizer will be set to free the URL when it is no longer needed.
func (*Url) HasCredentials ¶
func (*Url) HasEmptyHostname ¶
func (*Url) HasHostname ¶
func (*Url) HasNonEmptyPassword ¶
func (*Url) HasNonEmptyUsername ¶
func (*Url) HasPassword ¶
func (*Url) SetHostname ¶
func (*Url) SetPassword ¶
func (*Url) SetPathname ¶
func (*Url) SetProtocol ¶
func (*Url) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.