Documentation ¶
Index ¶
- type QueryMap
- type URL
- func (u *URL) AppendPath(path string) *URL
- func (u *URL) GetBaseDomain() string
- func (u *URL) GetDomain() string
- func (u *URL) GetHost() string
- func (u *URL) GetPath() string
- func (u *URL) GetURLString() string
- func (u *URL) ReplacePath(path string) *URL
- func (u *URL) String() string
- func (u *URL) URI(path string, params QueryMap) *URL
- func (u *URL) URIAppend(path string, params QueryMap) *URL
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct { Scheme string UserInfo *UserInfo Host string Domain string Subdomain string Port string Path string Query string Fragment string }
URL is a struct represent segments of a url
func (*URL) AppendPath ¶
AppendPath appends given path to current path with no changes to query string
func (*URL) GetBaseDomain ¶
GetBaseDomain return base domain which is Domain prefixed with www as subdomain
func (*URL) GetURLString ¶
GetURLString convert url object into url string [scheme://][userInfo@]host[:port][/path][?query][#fragment]
func (*URL) ReplacePath ¶
ReplacePath replaces given path with current path with no changes to query string
type UserInfo ¶
UserInfo is a struct of url username and password
func NewUserInfo ¶
NewUserInfo make new instance of UserInfo struct with given data
Click to show internal directories.
Click to hide internal directories.