基于Vue3+ElementPlus+Gin+Gorm编写的一款管理平台
进入main.go文件,执行main函数即可。
github:https://github.com/Lvan826199/xz-go-frame
gitee:https://gitee.com/xiaozai-van-liu/xz-go-frame
可以配置相关国内代理
##### goproxy
https://goproxy.io/zh/
# 配置
GOPROXY=https://goproxy.io/zh/,direct
##### 七牛云
https://goproxy.cn
# 配置
GOPROXY=https://goproxy.cn,direct
##### 阿里云
https://mirrors.aliyun.com/goproxy/
# 配置
GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
可以直接根据go.mod进行下载
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go mod tidy
go mod download
gin框架
go get -u github.com/gin-gonic/gin
session库
go get -u github.com/gin-contrib/sessions
viper配置管理库
go get github.com/spf13/viper
GORM框架+MySQL驱动
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
验证码模块
官网 : https://github.com/mojocn/base64Captcha
go get github.com/mojocn/base64Captcha
JWT模块
官网:https://github.com/golang-jwt/jwt
go get -u github.com/golang-jwt/jwt/v5
防缓存击穿singleflight
go get golang.org/x/sync/singleflightGroup
日志模块
go get -u go.uber.org/zap
go get go.uber.org/goleak v1.2.0