I solved my issue by restarting the terminal program. The code now
compiles. And I also tested on Win10 and go 1.16.
I'm glad I asked my question, because nothing I read said that all I had
to do to use modules is to go into each code directory I use and
go mod init <module-name>
Perhaps that simple instruction could be added to the documentation?
It would help complete idiots (or dummies) like me.
--rob solomon
---------------------------------------------------
Now I have a curious problem. Most of the code I've written is
compiling. I'm using go 1.15.8 under ubuntu. I did
I'm logged into ~/go/src
export GO111MODULE=on
cd multack This is my code
go mod init multack
cd ..
Now I'm back in ~/go/src
go install multack
I get an error saying that "package multack is not in GOROOT
(usr/local/go/src/multack)"
If I do
go run multack/multack.go
That works.
What does this error message mean?
Thanks again.
--rob solomon
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/c81a6488-95fa-f6d4-661e-05723f0a8840%40fastmail.com.