Cool to see these system level programming tricks being done in Go.
This kind of dirty tricks is sometimes used to mock binary libraries for testing.
https://www.microsoft.com/en-us/research/project/detours/
https://docs.microsoft.com/en-us/visualstudio/test/isolating...
Yep, questionable, but sometimes that is the only way to match those QA metrics.