utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AToAbsI

func AToAbsI(s string) (int64, error)

string 转int,去掉前后的字符,返回中间的int,如果中间也有字符,则报错

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