golang missing dot in first path element

文章描述了服务器上遇到的Go语言模块导入问题,由于Go版本过低(1.13)导致导入错误。升级到1.16版本后,问题得到解决,强调了保持软件更新的重要性。
[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一切正常!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值