Hooking into the Go Toolchain
Today we’re going to take a look at the Go toolchain, and more specifically at how we can take part in the compilation process with our own code. We won’t patch the compiler. We’ll stand right next to it while it works, watch what it does, and every now and then hand it something it didn’t ask for. Think of it as photobombing the compiler, politely. 📸
The way in is a single flag, and the cheapest experiment I know looks like this:
评论
?
参与讨论