For some reason now, when I try to run my Go code in command prompt my computer first asks me if I want to run this program "go.exe" from an unknown publisher.
Then once I hit yes, a separate window flashs open, I assume runs the program, then closes.
I have run different Go code before and never have had this happen to me.
Here is the simple go Hello World code saved under "test.go" located in my "C:\Users\\go\src\test\"
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World!")
}
In the Command Prompt, I write go run test.go
Any Go command does the same thing. I can't even run go version
How do I get Go to run in the terminal without my computer asking me to run the program every time, and it opening a separate window that I cannot see the results?