I have package where I write a golang
code.
I have a fear that program works incorrecly because it outputs different results from time to time. Probably it's due to race condtions
. So I run multiple times:
go run -race myprogram
But I didn't got any warning or errros.
Probably, errors are in another package I imported. As I understand, -race
flag doesn't detect them. If so, how can I do it (detect race condtion which occurs not in my code but in package I imported and I use in my code)?