Documentation ¶
Overview ¶
Includes several types that represent common domain-related concepts, such as FQDN for representing fully qualified domain names.
These types can be used to store and manipulate domain-related data in Go programs.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FQDN ¶
type FQDN struct { // Name is the domain name part of the FQDN. // It should be a valid domain name, such as "example" or "subdomain.example.com". Name string `json:"name"` }
FQDN represents a Fully Qualified Domain Name.
Example ¶
fqdn := FQDN{ Name: "foo.example.com", } fmt.Println(fqdn.Name == "foo.example.com")
Output: true
Click to show internal directories.
Click to hide internal directories.