Documentation
¶
Index ¶
- Constants
- func Component(rawUrl string, component string) (string, error)
- func Format(rawUrl string, format string) (string, error)
- func PartialHost(from, count int) string
- func PartialHostFrom(from int) string
- func PartialHostPort(from, count int) string
- func PartialHostPortFrom(from int) string
- func PartialPath(from, count int) string
- func PartialPathFrom(from int) string
- func SingleFragment(name string) string
- func SingleQuery(name string) string
- type InvalidComponentError
Constants ¶
View Source
const ( Scheme = "scheme" Authority = "authority" Auth = "auth" User = "user" Password = "password" HostPort = "hostPort" Host = "host" Tld = "tld" Port = "port" Path = "path" Query = "query" Fragment = "fragment" BasePath = "basePath" File = "file" Ext = "ext" RelativeUrl = "relativeUrl" )
Variables ¶
This section is empty.
Functions ¶
func PartialHost ¶
func PartialHostFrom ¶
func PartialHostPort ¶
func PartialHostPortFrom ¶
func PartialPath ¶
func PartialPathFrom ¶
func SingleFragment ¶
func SingleQuery ¶
Types ¶
type InvalidComponentError ¶
type InvalidComponentError struct {
// contains filtered or unexported fields
}
func (InvalidComponentError) Component ¶
func (i InvalidComponentError) Component() string
func (InvalidComponentError) Error ¶
func (i InvalidComponentError) Error() string
Click to show internal directories.
Click to hide internal directories.