Hi Pat,

FWIW, I pulled together a TLDR on modules some time ago that I think hits 
upon each of the different issues you encountered in this thread. It also 
tries to summarize the core modules concepts, along with a bit of advice on 
how to stay on the "happy path" when starting out with Go modules. It is 
located here:

  https://stackoverflow.com/a/57314494/11210494

That might be worth a quick read, especially if you found anything puzzling 
so far.

It is likely also worthwhile to go through the official Go modules tutorial 
from the Go project:

  https://go.dev/doc/tutorial/create-module

Finally, looking over the thread, it seems you started by chasing how to 
set GOROOT, which makes sense given the main error message you first saw 
mentions GOROOT. 

GOROOT was a bit of a red herring, and I opened an issue suggesting that 
error message be modified to something more helpful:

  #56965 -- cmd/go: consider reducing use of the word 'GOROOT' in error 
messages
  https://github.com/golang/go/issues/56965
  
Feel free to comment there or here if you have any additional thoughts on 
what would have made your journey simpler.

Best regards,
thepudds

On Friday, November 25, 2022 at 10:48:40 PM UTC-5 pat2...@gmail.com wrote:

> Thanks
> That seems to be the solution
>

-- 
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/c3c5c0ea-4d01-4bbb-9aa8-4442abfd459bn%40googlegroups.com.

Reply via email to