package
0.0.0-20211220085503-48ca4bbdee6e
Repository: https://github.com/0xaaff/stompserver.git
Documentation: pkg.go.dev

# Functions

CreateDir 文件夹创建.
ExistsDirectory 文件夹是否存在 参数: path string 检测的目录地址 return bool 目录是否存在.
ExistsFile 文件是否存在 参数: path string 检测的文件地址.
No description provided by the author
GetCurrentPath 获取当前程序运行路径 return string,error 当前运行路径,err 例如: E:/Go/ProjectTest/ <nil>.
GetCurrentPathNoError 获取当前程序运行路径 return string 当前运行路径,如果获取失败返回"" 例如: E:/Go/ProjectTest/ <nil>.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
map或者slice中是否存在指定Key.
s := reflect.ValueOf(slice) fmt.Println(s) for i := 0; i < s.Len(); i = i + 2 { if reflect.DeepEqual(key, s.Index(i).Interface()) { fmt.Println("True") return true } } return false } case reflect.Map: { if reflect.ValueOf(slice).MapIndex(reflect.ValueOf(key)).IsValid() { return true } return false } } return false }.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author