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.
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.