Failed to launch

I have an m2 mac and every time i try to launch a program I get this error.

What program are you trying to run?

How?

And does it work using go CLI tools directly?

I just started trying to learn go so I am not sure what CLI tools are

The go executable, used to compile your programs.

It’s output is canonical, not some editors popup.

Im using visual studios code if that helps at all

That’s obvious from the screenshot.

That’s why I am asking you to use the CLI to build and run.