Documentation ¶
Index ¶
Constants ¶
View Source
const (
DataSep = "\t"
)
Variables ¶
View Source
var DomainList map[string]string
DomainList is a global map that holds domain information with the domain as the key.
Functions ¶
func GetDomainInfo ¶
func GetDomainInfo(domain string) (*model.DomainInfo, bool)
GetDomainInfo returns the domain information for the given domain. It attempts to find the main domain, then retrieves and parses its associated data. Returns a pointer to a DomainInfo object and true if successful, nil and false otherwise.
func GetDomainName ¶
GetDomainName returns the domain name for the given domain. It uses GetDomainInfo to retrieve the domain's information and extracts the "name" field. Returns the name and true if successful, an empty string and false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.