Description

LookupIPAltResolverKey is a context.Context Value key used by tests to specify an alternate resolver func. It is not exposed to outsider users. (But see issue 12503) The value should be the same type as lookupIP:

func lookupIP(ctx context.Context, host string) ([]IPAddr, error)

LookupIPAltResolverKey is referenced in 1 repository

github.com/golang/go