Mastering Go 4th edition Source Code
You can find the source code for Mastering Go, 4th edition here.
However, some of the Go code exists in other public repositories as indicated in the book in order to show how to create and distribute Go code.
You can get the book on Packt, Amazon.com, all other Amazon web sites as well as on other book stores.