port

package
v0.4.2-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 2 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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