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

浙公网安备 33010602011771号