收到错误后,我使用了“ git config-global-unset https.proxy”来消除该错误,但它不起作用

时间:2018-09-25 07:00:52

标签: go

我已经安装了go1.11 / windows amd64。我正在测试GO的安装

我为所有env变量安装了带有建议路径的golang,但在命令提示符下发出'go get github.com/golang/example/hello'时得到了错误

> `go get github.com/golang/example/hello
> # cd D:\gocode\src\github.com\golang\example; git pull --ff-only There is no tracking information for the current branch. Please specify
> which branch you want to merge with. See git-pull(1) for details.
> 
>     git pull <remote> <branch>
> 
> If you wish to set tracking information for this branch you can do so
> with:
> 
>     git branch --set-upstream-to=<remote>/<branch> master
> 
> package github.com/golang/example/hello: exit status 1`

下面是我的“ go env”输出:

  
    

转到环境设置GOARCH = amd64设置GOBIN =设置GOCACHE = C:\ Users \ parapand \ AppData \ Local \ go-build设置GOEXE = .exe设置     GOFLAGS =设置GOHOSTARCH = amd64设置GOHOSTOS = windows设置GOOS = windows     设置GOPATH = D:\ gocode设置GOPROXY =设置GORACE =设置GOROOT = C:\ Go设置     GOTMPDIR =设置GOTOOLDIR = C:\ Go \ pkg \ tool \ windows_amd64设置GCCGO = gccgo     设置CC = gcc设置CXX = g ++设置CGO_ENABLED = 1设置GOMOD =设置CGO_CFLAGS = -g     -O2设置CGO_CPPFLAGS =设置CGO_CXXFLAGS = -g -O2设置CGO_FFLAGS = -g -O2设置CGO_LDFLAGS = -g -O2设置PKG_CONFIG = pkg-config设置GOGCCFLAGS = -m64     -mthreads -fno-caret诊断-Qunused参数-fmessage-length = 0 -fdebug-prefix-map = C:\ Users \ parapand \ AppData \ Local \ Temp \ go-build101474458 = / tmp / go-build     -gno-record-gcc-switches

  
     

>go build can't load package: package .: no Go files in C:\Users\parapand

0 个答案:

没有答案