package
0.0.28
Repository: https://github.com/jacklv111/common-sdk.git
Documentation: pkg.go.dev

# Packages

* Created on Sun Oct 27 2024 * * Copyright (c) 2024 Company-placeholder.
* Created on Thu Oct 31 2024 * * Copyright (c) 2024 Company-placeholder.
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
generateAKSK 生成 Access Key 和 Secret Key.
No description provided by the author
GenRandStr 生成指定长度的随机字符串.
No description provided by the author
No description provided by the author
GetFileSha256Bytes 获取 bytes 的 sha256 值 @param buf []byte @return string.
GetFileSha256FromFile 获取文件的 sha256 值 @param filePath @return string @return error.
No description provided by the author
GetImageMeta 获取图片的 metadata @param filePath @return valueobject.ImageMeta @return error.
Utility function to create int32 pointers.
IsDir 判断文件是否为文件夹 @param path @return bool.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
将字符串表示形式的数字解析为 int 如果是合法数字,值要在 [minVal, maxVal] 区间内 如果是空字符串,则返回 defaultVal 如果字符串不是数字,返回 error.
解析如 “a,b,c" -> ["a", "b", "c"] 形式的参数.
PathExists 判断 path 是否存在 @param path @return bool @return error.
读取一个目录下的所有文件,包括文件夹中的文件 @param path 目录的路径 @return []string 目录下的文件路径列表.
读取一个目录下的所有文件,包括文件夹中的文件 @param path 目录的路径 @return []string 目录下的文件路径列表.
ReadFilesReturnMap 扫描文件夹中的文件,得到所有的文件,以 map 的形式返回 @param path @return map[string]string key: 文件名,不带后缀; value: 文件路径 @return error.
No description provided by the author
No description provided by the author

# Constants

100 MB.
No description provided by the author
100 MB.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author