domainname

package
v0.0.0-...-cf07509 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(one, two string) int

func IsEqualTo

func IsEqualTo(one, two string) bool

func IsSubdomainTo

func IsSubdomainTo(one, two string) bool

Check is one subdomain to two

Types

type DomainName

type DomainName struct {
	// contains filtered or unexported fields
}

func NewDomainNameFromString

func NewDomainNameFromString(domainname string) *DomainName

func NewDomainNameFromStringsSlice

func NewDomainNameFromStringsSlice(domainname []string) *DomainName

func (*DomainName) CompareTo

func (self *DomainName) CompareTo(to *DomainName) int

func (*DomainName) CompareToString

func (self *DomainName) CompareToString(to string) int

func (*DomainName) IsEqualTo

func (self *DomainName) IsEqualTo(to *DomainName) bool

func (*DomainName) IsEqualToString

func (self *DomainName) IsEqualToString(to string) bool

func (*DomainName) IsSubdomainTo

func (self *DomainName) IsSubdomainTo(to *DomainName) bool

Check is self subdomain to two

func (*DomainName) IsSubdomainToString

func (self *DomainName) IsSubdomainToString(to string) bool

func (*DomainName) Item

func (self *DomainName) Item(i int) string

func (*DomainName) Len

func (self *DomainName) Len() int

func (*DomainName) SetFromString

func (self *DomainName) SetFromString(domainname string)

func (*DomainName) SetFromStringsSlice

func (self *DomainName) SetFromStringsSlice(domainname []string)

func (*DomainName) String

func (self *DomainName) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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