net

package
v2.167.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAddress added in v2.95.0

func DefaultAddress(port string) string

DefaultAddress for servers in the form of tcp://:port

func Host

func Host(addr string) string

Host from the address, if it can be split.

func NetworkAddress added in v2.93.0

func NetworkAddress(address string) (string, string)

NetworkAddress takes an address like tcp://localhost:3000 and returns "tcp" "localhost:3000".

Types

type Conn added in v2.93.0

type Conn = net.Conn

Conn is an alias for net.Conn.

type Dialer added in v2.93.0

type Dialer = net.Dialer

Dialer is an alias for net.Dialer.

type Listener

type Listener = net.Listener

Listener is an alias for net.Listener.

func Listen

func Listen(ctx context.Context, network, address string) (Listener, error)

Listen is an alias for net.Listen.

Directories

Path Synopsis
mvc
rpc

Jump to

Keyboard shortcuts

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