Documentation
¶
Overview ¶
Package netlib provides a simple IP and DNS functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrivateIP ¶
IsPrivateIP checks if the input string is a private IP address
Types ¶
type DNSconfig ¶
type DNSconfig struct {
Nameserver string
Port int
TCP bool
Resolver *net.Resolver
Timeout time.Duration
IPv4Only bool
IPv6Only bool
}
func NewResolver ¶
NewResolver returns a DNSconfig object
Click to show internal directories.
Click to hide internal directories.