代码拉取完成,页面将自动刷新
go学习 702009189@qq.com
环境变量
1. GOPATH G:\Go\GoWork
2. GOBIN G:\Go\jdk\bin
3. GOROOT G:\Go\jdk\
4. Path G:\Go\jdk\bin
GoLand工具
5. // gin
go get github.com/gin-gonic/gin
// mysql
go get github.com/go-sql-driver/mysql
// 日志
go get github.com/lestrrat/go-file-rotatelogs
go get github.com/rifflock/lfshook
go get github.com/sirupsen/logrus
// reids
go get github.com/garyburd/redigo/redis
// jwt验证
go get github.com/dgrijalva/jwt-go
// 工具类
go get github.com/Unknwon/com
// 日志
go get github.com/sirupsen/logrus
// excel 导出
go get github.com/tealeg/xlsx
// excel 导入
go get github.com/360EntSecGroup-Skylar/excelize
8. GoLand 环境配置
Settings
Go->GOPATH->Module GOPATH
新增工程路径 G:\Go\GoWork\mwx-go
// 程序入口
9. Run/Debug Configurations->Templates->Go Bulid->Files
选中 G:\Go\GoWork\mwx-go\src\app\main.go
// 编译目录
Run/Debug Configurations->Templates->Go Bulid->Output directory
选中 G:\Go\GoWork\mwx-go\runtime
10. 修改代码 # 1-linux or 2-windows
app.ini ==> PathType = 1
main.go ==> setting.Setup(1)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。