Where is the module cache in golang?

后端 未结 5 1057
我在风中等你
我在风中等你 2021-01-01 11:38

When I enable gomodules and build my go program then the required packages are downloaded.

But I cannot find them in $GOPATH/src/ or in $GOPATH/s

5条回答
  •  隐瞒了意图╮
    2021-01-01 12:07

    I'm on Macos 10.13.6, using go1.11 darwin/amd64 and echo $GOPATH is empty.

    I found my modules in $HOME/go/pkg/mod

提交回复
热议问题