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:

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论