zzh@ZZHPC:~/zd/MyPrograms/Go/zapp10$ go run main.go main.go:6:5: no required module provides package github.com/XXX/zzhrepo1/calc; to add it: go get github.com/XXX/zzhrepo1/calc zzh@ZZHPC:~/zd/MyPrograms/Go/zapp10$ cat go.mod module zapp10 go 1.20 zzh@ZZHPC:~/zd/MyPrograms/Go/zapp10$ go get github.com/XXX/zzhrepo1/calc go: added github.com/XXX/zzhrepo1 v1.0.0 zzh@ZZHPC:~/zd/MyPrograms/Go/zapp10$ cat go.mod module zapp10 go 1.20 require github.com/XXX/zzhrepo1 v1.0.0 // indirect
标签:github,zzhrepo1,XXX,go,get,Go,zapp10 From: https://www.cnblogs.com/zhangzhihui/p/17604691.html