domainlist

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

func GetDomainName(domain string) (string, bool)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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