Home > Net >  How to successfully run Golang program with an http.Get calls - On Windows with MalwareBytes running
How to successfully run Golang program with an http.Get calls - On Windows with MalwareBytes running

Time:06-21

ETA. Okay, based on some advice I'd received, I used go build main.go rather than go run main.go

This puts the main.exe in my project folder (which I excluded) rather than putting a temporary main.exe in the Temp Folder (which would be bad folder to exclude in your AV.)

Able to run now.


This question is for any Golang developers who work on Windows and have MalwareBytes installed. (Answers from other OS users who have MalwareBytes and GO installed welcome!)

Can you run a simple program with an http call?

See this for more details: Go program exits with no output if it has a simple http.Get call

As I mentioned in the closed question - the problem was my antivirus (MalwareBytes)

I'm still working with MalwareBytes on the issue...but I wanted to see if anyone else is currently able to get a http-method-using Golang program to play nice with MalwareBytes, especially on Windows.

If you are, are you using any exclusions and if so, which ones? I excluded the Golang folder in my Program Files, and the folder with my project code, but it doesn't help.

Thanks for any insight!

CodePudding user response:

Okay, based on some advice I'd received, I used go build main.go rather than go run main.go.

This puts the main.exe in my project folder (which I excluded) rather than putting a temporary main.exe in the Temp Folder (which would be bad folder to exclude in your AV.)

When I do that, I can run the newly built exe in my project folder.

Able to run now.

  • Related