查看到网页浏览 外部依赖包是放在GOPATH目录下的src文件,但是实践测试是放在的pkg文档下的,不太会引包了,请问怎么操作呢?

laozoashuijiao · · 2166 次点击
set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\laoza\AppData\Local\go-build set GOENV=C:\Users\laoza\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GONOPROXY=*.corp.example.com set GONOSUMDB=*.corp.example.com set GOOS=windows set GOPATH=E:\go set GOPRIVATE=*.corp.example.com set GOPROXY=https://goproxy.cn set GOROOT=c:\go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=C:\Users\laoza\go.mod set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\laoza\AppData\Local\Temp\go-build297951026=/tmp/go-build -gno-record-gcc-switches
#1