Documentation
¶
Index ¶
- func ByteCountBinary(b uint64) string
- func CheckStringInSlice(item string, slice []string) bool
- func ClearTempFile(tempPath ...string) error
- func DeepCopyMap(original map[string]any) (map[string]any, error)
- func GenerateClipEncodedKey(k string, i int) string
- func GenerateClipKey(k string, i int) string
- func GenerateMergedKey(k string) string
- func GetFileSize(filePath string) int64
- func HighlightString(color Color, str string) string
- func KillProcessByName(processName string) error
- func StringToStruct(str string, s interface{}) error
- func StructToMap(s interface{}) (map[string]interface{}, error)
- func StructToString(s interface{}) string
- type Color
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountBinary ¶
ByteCountBinary 把 Length 转换为文件大小, 自适应单位
func CheckStringInSlice ¶
CheckStringInSlice 检查字符串是否在切片中
func DeepCopyMap ¶
DeepCopyMap 深拷贝 map[string]any 类型的字典
func GenerateClipEncodedKey ¶
func GenerateClipKey ¶
func GenerateMergedKey ¶
func KillProcessByName ¶
KillProcessByName 根据进程名杀死进程
func StructToMap ¶
StructToMap 结构体转 map[string]interface{},请勿在有数字情况下使用,请使用反射
Types ¶
Click to show internal directories.
Click to hide internal directories.