**golang新手小白求教各位大神**:最近写了一个小的工程,里面声明了几个包,然后在顶层包内声明了一个main方法(调用工程内部package的方法),然后编译main方法报错`main.go:6:2: no required module provides package github.com/xxxxx/xxxx/xxxx ; to add it: go get github.com/xxxxx/xxxx/xxxx`。网上查看原因,大概感觉是go mod与GOPATH的问题,下面的Go的环境配置,求教各位解决方法
```
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=D:\software\GoRepo\bin
set GOCACHE=D:\software\GoRepo\build-cache
set GOENV=C:\Users\xxxxx\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\software\GoRepo\pkg\mod-cache
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\software\GoRepo
set GOPRIVATE=
set GOPROXY=https://goproxy.cn
set GOROOT=D:\software\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\software\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\chenhao\AppData\Local\Temp\go-build3775741545=/tmp/go-build -gno-record-gcc-switches
```