netutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeafaultDnsResolver *dnsResolver
View Source
var (
	ErrEmptyAddress = errors.New("not found address")
)

Functions

func GetAddrByHost

func GetAddrByHost(host string) (string, error)

return address ip by host if host first resolve , add to the dnsResolver, return same with the host host in dnsResolver, but addrs is empty, return ErrEmptyAddress

Types

This section is empty.

Jump to

Keyboard shortcuts

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