osx

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImageExists

func CheckImageExists(filename string) error

CheckImageExists 检查图像文件是否存在并且有效

func GetCurrentPath

func GetCurrentPath() (string, error)

GetCurrentPath 获取当前工作目录的路径

func GetDirFiles

func GetDirFiles(dir string) ([]string, error)

GetDirFiles 获取指定目录及其子目录下的所有文件路径 参数:dir - 目录路径 返回:所有文件的路径切片和可能的错误

func HashUnixMicroCipherText

func HashUnixMicroCipherText() string

HashUnixMicroCipherText

func PanicGetHostName

func PanicGetHostName() string

func SafeGetHostName

func SafeGetHostName() string

获取主机名函数

func SaveImage

func SaveImage(filename string, imgData []byte, quality int) error

SaveImage 将字节数据保存为指定文件名的图片

func ServerIP

func ServerIP() (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL