David22 的个人博客 / 35 / 0 / 创建于 1天前
1.设置标头w.Header().Set("Content-Type", "text/html;charset=utf-8")2.自动重载先执行
w.Header().Set("Content-Type", "text/html;charset=utf-8")
go mod init
再安装air
GO111MODULE=on go install github.com/cosmtrek/air@latest
检查air是否安装成功
air -v
在项目根目录里执行air
air
本作品采用《CC 协议》,转载必须注明作者和本文链接
我要举报该,理由是:
推荐文章: