air执行出错,提示需要go mod init
根据装教程上的写下,安装air后执行出现问题
go: cannot find main module, but found .git/config in /Users/mac/Code/go/src/github.com/weiyechaocat/goblog
to create a module there, run:
go mod init
failed to build, error: exit status 1
我的golang安装在/usr/local/go
我的项目目录为/User/mac/Code/go
看站长的项目路径也是自定义,不知安装路径是在哪里
推荐文章: