urlparser

package
v0.0.0-...-8a01370 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 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 {
	Subdomain, Domain, TLD string
	ICANN                  bool
}

URL embeds net/url and adds extra fields ontop

func Parse

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL