Hacking Go Compiler
There exist some great blog post that explain how to add new functionality to the Go compiler:
- Go compiler internals: adding a new statement to Go - Part 1
- Go compiler internals: adding a new statement to Go - Part 2
- Hacking Go compiler to add a new keyword
If you want to learn more about Go, you can check my book Mastering Go, 3rd edition. You can find Mastering Go, 3rd edition on Packt, Amazon.com, all other Amazon web sites as well as on other book stores.