79508481

Date: 2025-03-14 08:35:37
Score: 0.5
Natty:
Report link

I guess this issue is resolved in the first comment. Putting it here in steps.

Set GOPATH and GOROOT paths in your environment (system variables)

GOPATH will be %USERPROFILES%\go , GOROOT is C:\Program Files\go

Add Path values for these two by appending the \bin folder.

GOROOT is the place of Go installation files

GOPATH is the Workspace for your projects and dependencies. This is where go stores all installed artifacts/dependency like maven .m2 repo in local. Contains your Go source code (src/), compiled binaries (bin/), dependencies (pkg/).

Apply the same analogy for mac. Restart the ide, it should work.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ashutosh Mohanty