port

package
v0.4.4-alpha8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailablePort

func GetAvailablePort(t string) (int, error)

获取可用端口

func IsPortAvailable

func IsPortAvailable(port int, t string) bool

判断端口是否可以(未被占用) param t tcp/udp

func ListPortsInUse added in v0.4.4

func ListPortsInUse() ([]int, []int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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