Versions in this module Expand all Collapse all v0 v0.4.1 Dec 10, 2024 v0.4.0 Nov 25, 2024 Changes in this version + type HostNetwork struct + func Host() *HostNetwork + func (n *HostNetwork) DialContext(ctx context.Context, network, addr string) (net.Conn, error) + func (n *HostNetwork) LookupContextHost(ctx context.Context, host string) ([]string, error) + type LoopbackNetwork struct + func Loopback() *LoopbackNetwork + func (n *LoopbackNetwork) DialContext(ctx context.Context, network, addr string) (net.Conn, error) + func (n *LoopbackNetwork) LookupContextHost(ctx context.Context, host string) ([]string, error) + type Network interface + DialContext func(ctx context.Context, network, addr string) (net.Conn, error) + LookupContextHost func(ctx context.Context, host string) ([]string, error)