Documentation ¶
Overview ¶
Package tldify provides an extended version of net/url.URL. In addition to the standard URL parsing, tldify.URL includes additional fields for Subdomain, Domain, TLD, Port, and ICANN status, offering more detailed URL analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct { Subdomain string // The subdomain part of the URL (e.g., "sub" in "sub.example.com"). Domain string // The registered domain name (e.g., "example" in "example.com"). TLD string // The top-level domain (TLD) (e.g., "com" in "example.com"). Port string // The port number if specified (e.g., "8080" in "example.com:8080"). ICANN bool // Indicates if the TLD is recognized by ICANN. *url.URL // Embeds net/url.URL to retain the standard URL structure. }
URL is an extended version of net/url.URL. It contains additional fields such as Subdomain, Domain, TLD, Port, and ICANN to store more detailed information about the parsed URL.
Click to show internal directories.
Click to hide internal directories.