urlbits

package
Version: v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL struct {
	*url.URL
	TLD, ETLDPlus1, DomainName, BaseDomainName, SubDomainName, Port string
}

URL embeds net/url and adds extra fields ontop

func Parse

func Parse(rawURL string) (*URL, error)

Parse mirrors net/url.Parse except instead it returns a tld.URL, which contains extra fields.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL