自学golang
排除了环境变量GOPATH 和 GOROOT 的问题,
问题: 在引入自己写好的包的时候报错expected declaration, found "chapter06/fundemo/utils"
"chapter06/fundemo/utils"为自定义包的地址
需要引入包名为:utils

下图为自定义包utils代码

在main主包当中填入了地址后
主包报错expected declaration, found "chapter06/fundemo/utils"
下图为主包main代码


当前版本为 go 1.17
环境变量情况:
