摘要:
package internalimport ( "github.com/flipped-aurora/gin-vue-admin/server/global" rotatelogs "github.com/lestrrat-go/file-rotatelogs" "go.uber.org/zap/ 阅读全文
摘要:
package utilsimport ( "runtime" "time" "github.com/shirou/gopsutil/v3/cpu" "github.com/shirou/gopsutil/v3/disk" "github.com/shirou/gopsutil/v3/mem")co 阅读全文
摘要:
package utilsimport ( "os" "path/filepath" "reflect" "strings")//@author: [songzhibin97](https://github.com/songzhibin97)//@function: FileMove//@descr 阅读全文
摘要:
package timerimport ( "sync" "github.com/robfig/cron/v3")type Timer interface { AddTaskByFunc(taskName string, spec string, task func(), option ...cro 阅读全文
摘要:
一、写文件写文件一般步骤 打开文件,获取文件句柄根据不同方法,将数据写入关闭文件句柄 打开文件,获取文件句柄os.OpenFile(path, os.O_CREATE, 0666)我们来了解一下第二个参数的含义: O_RDONLY // 只读模式打开文件O_WRONLY // 只写模式打开文件O_R 阅读全文