Gopls depends on finding a go.mod file, otherwise you get lots of 
"undeclared name".
If it's not there just go to your project root folder and issue the command 
"go mod init".

-- 
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/8db360a3-00c0-433b-8f94-e83e000022f0%40googlegroups.com.

Reply via email to