上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 202 下一页
摘要: 一,代码: 1,global/accessLogger.go 初始化全局变量 package global import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" "os" "time" ) var ( LogFileAccess *os.File 阅读全文
posted @ 2025-02-23 17:36 刘宏缔的架构森林 阅读(249) 评论(0) 推荐(0)
摘要: 一,下载地址: 官网: https://www.rarlab.com/ 找到for linux的下载链接 二,从命令行下载: # cd /usr/local/source/ # mkdir rar # cd rar # wget https://www.rarlab.com/rar/rarlinux 阅读全文
posted @ 2025-02-23 17:36 刘宏缔的架构森林 阅读(135) 评论(0) 推荐(0)
摘要: 一,报错信息: checking for oniguruma... no configure: error: Package requirements (oniguruma) were not met: Package 'oniguruma', required by 'virtual:world' 阅读全文
posted @ 2025-02-15 11:13 刘宏缔的架构森林 阅读(868) 评论(0) 推荐(0)
摘要: 一,重置密码时的报错信息 mysql> alter user root@localhost identified by 'mypassword'; ERROR 1819 (HY000): Your password does not satisfy the current policy requir 阅读全文
posted @ 2025-02-15 11:12 刘宏缔的架构森林 阅读(481) 评论(0) 推荐(0)
摘要: 一,下载yum库的rpm包 # wget https://dev.mysql.com/get/mysql84-community-release-el9-1.noarch.rpm 安装: # rpm -ivh mysql84-community-release-el9-1.noarch.rpm wa 阅读全文
posted @ 2025-02-15 11:12 刘宏缔的架构森林 阅读(360) 评论(0) 推荐(0)
摘要: 一,报错信息: (parted) mkpart primary 0 100% Warning: The resulting partition is not properly aligned for best performance: 34s % 2048s != 0s Ignore/Cancel? 阅读全文
posted @ 2025-02-15 11:11 刘宏缔的架构森林 阅读(683) 评论(0) 推荐(0)
摘要: 一,代码: 1,controller/ImageController.go //得到详情 func (ic *ImageController) Detail(c *gin.Context) { // gin版本 ginVersion:=gin.Version // golang 版本 golangV 阅读全文
posted @ 2025-02-15 11:11 刘宏缔的架构森林 阅读(105) 评论(0) 推荐(0)
摘要: 一,问题: 1, 看git的log $ git log commit c3b2a014a8c7ba3bceab73b853324e84bb84e016 (HEAD -> master) Author: liuhongdi <37@qq.com> Date: Thu Feb 13 13:30:22 2 阅读全文
posted @ 2025-02-15 11:11 刘宏缔的架构森林 阅读(69) 评论(0) 推荐(0)
摘要: 一,定义格式类 主要是两个方法: Success和Failed global/result.go package global import ( "github.com/gin-gonic/gin" "time" ) //返回的结果的内容: type ResultCont struct { Stat 阅读全文
posted @ 2025-02-15 11:10 刘宏缔的架构森林 阅读(249) 评论(0) 推荐(0)
摘要: 一,中间件代码 这里我们演示一个例子:判断用户是否登录后,传递参数给controller func AuthCheck() gin.HandlerFunc { return func(c *gin.Context) { //从c得到参数后进行判断 isLogin:=1 userId:=100 if 阅读全文
posted @ 2025-02-15 11:09 刘宏缔的架构森林 阅读(116) 评论(0) 推荐(0)
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 202 下一页