Help us shape the future of Go! Take the 2026 Go Developer Survey

netdial

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package netdial opens TCP connections directly or through an HTTP CONNECT or SOCKS5 proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer struct {
	Timeout time.Duration
	// Proxy is an http://, https:// (CONNECT) or socks5:// URL. Empty means direct.
	Proxy string
}

Dialer connects to host:port.

func (Dialer) DialContext

func (d Dialer) DialContext(ctx context.Context, addr string) (net.Conn, error)

DialContext opens a TCP connection to addr.

Jump to

Keyboard shortcuts

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