net

package
v0.0.0-...-e56f5d9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitHostPort

func SplitHostPort(hostPort string) (host, port string)

host or host:port

func ValidIPAddress

func ValidIPAddress(addr string) bool

validate an IP Address

func ValidPort

func ValidPort(s string) bool

s = host[:port]

Types

type Port

type Port uint16

Port represents network port

func ParsePort

func ParsePort(s string) (Port, error)

func ReceiveFreePort

func ReceiveFreePort() (Port, error)

ReceiveFreePort receives free port

func (Port) String

func (p Port) String() string

Jump to

Keyboard shortcuts

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