Documentation ¶
Overview ¶
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-10-16 19:51:55 * @FilePath: \go-toolbox\pkg\osx\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-28 09:52:21 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-10-28 10:10:17 * @FilePath: \go-toolbox\pkg\osx\file.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
Index ¶
- func CheckImageExists(filename string) error
- func GetCurrentPath() (string, error)
- func GetDirFiles(dir string) ([]string, error)
- func HashUnixMicroCipherText() string
- func PanicGetHostName() string
- func SafeGetHostName() string
- func SaveImage(filename string, imgData []byte, quality int) error
- func ServerIP() (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckImageExists ¶
CheckImageExists 检查图像文件是否存在并且有效
func GetDirFiles ¶
GetDirFiles 获取指定目录及其子目录下的所有文件路径 参数:dir - 目录路径 返回:所有文件的路径切片和可能的错误
func PanicGetHostName ¶
func PanicGetHostName() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.