运行go run main.go报错build command-line-arguments: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

踩坑,这次这个报错困扰了有点久,google一查发现是在Centos7.9运行go版本问题,go.1.13会报错,升级到 1.17 or 1.18 即可
posted @ 2023-01-24 22:20  lucky_tomato  阅读(1540)  评论(0编辑  收藏  举报