Versions in this module Expand all Collapse all v1 v1.8.10 May 6, 2022 Changes in this version + var ErrBlocked = errors.New("ip is blocked") + var ErrInvalidPort = errors.New("invalid port number") + var ErrNotIPv4Address = errors.New("not ipv4 address") + func Resolve(ctx context.Context, hostport string, timeout time.Duration, ...) (net.IP, int, error) + func ResolveIPv4(ctx context.Context, timeout time.Duration, host string) (net.IP, error)