今天爱分享给大家带来cannot find module providing package github/gin-gonic/gin【解决方法】,希望能够帮助到大家。
报错信息:cannot find module providing package github.com/gin-gonic/gin: working directory is not part of a module
解决方法,命令行切换到报错文件(gin_std.go)所在的目录,执行下面命令:
go mod init gin go mod edit -require github.com/gin-gonic/gin@latest
上面运行后,再运行 go run .\gin_std.go,就可行了,该问题涉及到go mod包依赖管理。
原文链接:https://itblood.website/3949.html,转载请注明出处。

![奶子增长点击器R18 官方中文版[新作][PC+安卓/5.4G] [点击SLG/中文/动态]](/wp-content/uploads/replace/2025/10/12/35e08d24acf14955787c9f59b24a465a.webp)