golang - how to avoid false positive at every and each run?!

I am a go language programmer.

I am very bored and tired to disable Avast when programming because at every and each single go run, avast blocks the newly created executable.

Even the smallest and dumbest go executable created is blocked.

I cannot exclude entire temp folder from avast just to workaround this and AFAIK there is no way to exclude using wildcards.

Wildcards should work.

Maybe have these executables run from a separate temp folder and exclude that.

As has been said, the wildcards should work, I have one set for some samples.

A screenshot of the Avast Alert, with the Details option selected my help to determine why your exception isn’t working.
Could it be that it isn’t running in isolation in that folder.

I managed to stop the blocking by adding the following wildcard exception under Avast’s Menu > Settings > General > Exceptions:

C:\Users\<YourUser>\AppData\Local\Temp\go-build*\b*\exe\*.exe
  • should be the name of your user folder.