How can I check if the race detector is enabled at runtime?

Viewed 1009

Is there any way I can check if the Go program is compiled with -race enabled at runtime (for e.g. logging/informational purposes)?

I checked the documentation, as well as the obvious locations (runtime/*), but I can't find anything.

1 Answers
Related