utils

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExist

func FileExist(path string) bool

func GetAvailablePort

func GetAvailablePort() (int, error)

GetAvailablePort 获取可⽤端⼝

func GetCurrentAbPath

func GetCurrentAbPath() string

最终方案-全兼容

func GetStack

func GetStack(skip int, depth int) string

func GetSystemIP

func GetSystemIP() (string, error)

func GetWorkdir

func GetWorkdir() string

func IsPortAvailable

func IsPortAvailable(port int) bool

IsPortAvailable 判断端⼝是否可以(未被占⽤)

Types

This section is empty.

Jump to

Keyboard shortcuts

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