We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great to add the code snippet from docs into library itself and cover with a test:
DialContext: func(ctx context.Context, network string, addr string) (conn net.Conn, err error) { host, port, err := net.SplitHostPort(addr) if err != nil { return nil, err } ips, err := r.LookupHost(ctx, host) if err != nil { return nil, err } for _, ip := range ips { var dialer net.Dialer conn, err = dialer.DialContext(ctx, network, net.JoinHostPort(ip, port)) if err == nil { break } } return },
So users may just use it direcly instead of copying from docs.
The text was updated successfully, but these errors were encountered:
created a PR
Sorry, something went wrong.
No branches or pull requests
It would be great to add the code snippet from docs into library itself and cover with a test:
So users may just use it direcly instead of copying from docs.
The text was updated successfully, but these errors were encountered: