关于使用 `air` 后报错的解决方案

报错提示如下

go: cannot find main module, but found .git/config in /Users/username/go/src/github.com/username/goblog
        to create a module there, run:
        go mod init

此应用依赖 go mod 解决方案有二:
1.在项目目录下执行 go mod init 完成 go mod 初始话;
2.执行 export GO111MODULE=auto [ 推荐, 我是 Mac ,Windows 不详 ]。

Life emerges from calamity and sorrow, but death comes from the joyful state of oblivion.
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!