Documentation ¶ Index ¶ func AToAbsI(s string) (int64, error) func FileExist(path string) bool func GetAvailablePort() (int, error) func GetCurrentAbPath() string func GetStack(skip int, depth int) string func GetSystemIP() (string, error) func GetWorkdir() string func IsPortAvailable(port int) bool 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. Source Files ¶ View all Source files file.go net.go stack.go strings.go Click to show internal directories. Click to hide internal directories.