Answer the question
In order to leave comments, you need to log in
Why won't go language run on ubuntu 20.4?
I am an absolute beginner on this wonderful operating system. I installed the go language compiler from the official site, unpacked the archive and /usr/local/
then added the following lines to the .bashrc file:
#User Settings
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
it gives me my version of the compiler. go run
gives an error go run: no go files listed
Answer the question
In order to leave comments, you need to log in
Go to the directory where the code is stored and run it there.
There are no *.go files in the folder, the compiler does not see them, there is nothing for it to compile
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question