C:\Users\UdayKiranReddy\go\src>go install
go install: no install location for directory C:\Users\UdayKiranReddy\go\src outside GOPATH
For more details see: 'go help gopath'
If you see above error.
Then set this variable before running "go install"
set GOBIN=%GOPATH%\bin
Then, go install works and the compiled exe will be saved to the GOBIN folder.
No comments:
Post a Comment