[root@127 MiddleServer]# go mod tidy
MiddleServer/application/admin/mergeEverdayGameUserLog imports
github.com/yangtizi/log/zaplog imports
gopkg.in/natefinch/lumberjack.v2 tested by
gopkg.in/natefinch/lumberjack.v2.test imports
github.com/BurntSushi/toml imports
io/fs: malformed module path "io/fs": missing dot in first path element
MiddleServer/application/admin/mergeEverdayGameUserLog imports
github.com/yangtizi/log/zaplog imports
gopkg.in/natefinch/lumberjack.v2 tested by
gopkg.in/natefinch/lumberjack.v2.test imports
github.com/BurntSushi/toml tested by
github.com/BurntSushi/toml.test imports
testing/fstest: malformed module path "testing/fstest": missing dot in first path element
MiddleServer/application/admin/mergeEverdayGameUserLog imports
github.com/yangtizi/log/zaplog imports
gopkg.in/natefinch/lumberjack.v2 tested by
gopkg.in/natefinch/lumberjack.v2.test imports
github.com/BurntSushi/toml tested by
github.com/BurntSushi/toml.test imports
github.com/BurntSushi/toml-test imports
embed: malformed module path "embed": missing dot in first path element
服务器上突然遇到了这个问题。经过检查是因为服务器的 golang 版太低(13)导致, 升级到了16一切正常!
文章描述了服务器上遇到的Go语言模块导入问题,由于Go版本过低(1.13)导致导入错误。升级到1.16版本后,问题得到解决,强调了保持软件更新的重要性。

1万+

被折叠的 条评论
为什么被折叠?



