Documentation ¶
Overview ¶
Package uri provides a helper for URI validation and parsing
Index ¶
- func IsHostnameOnly(host string) error
- type Defaults
- type URI
- func (u *URI) Addr() string
- func (u *URI) GetParam(key string) string
- func (u *URI) Host() string
- func (u *URI) NoQueryString() string
- func (u *URI) Password() string
- func (u *URI) Path() string
- func (u *URI) Port() string
- func (u *URI) Query() string
- func (u *URI) Scheme() string
- func (u *URI) Socket() string
- func (u *URI) String() string
- func (u *URI) User() string
- type URIValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type URI ¶
type URI struct {
// contains filtered or unexported fields
}
func New ¶
New parses a given rawUri and returns a new filled URI structure. It ignores embedded credentials according to https://www.ietf.org/rfc/rfc3986.txt. Use NewWithCreds to add credentials to a structure.
func NewWithCreds ¶
func (*URI) Addr ¶
Addr combines a host and a port into a network address ("host:port") or returns a socket.
func (*URI) NoQueryString ¶ added in v0.0.2
NoQueryString reassembles the URI to a valid URI string with no query.
func (*URI) String ¶
String reassembles the URI to a valid URI string.
Click to show internal directories.
Click to hide internal directories.