Summary
In this chapter, we talked about code testing, code optimization, and code profiling. Near the end of the chapter, you learned how to find unreachable code and how to cross-compile Go code. The go test command is used to test and benchmark Go code, as well as offering extra documentation with the use of example functions.
Although the discussion of the Go profiler and go tool trace is far from complete, you should understand that with topics such as profiling and code tracing, nothing can replace experimenting and trying new techniques on your own!
In the next chapter, Chapter 12, The Foundations of Network Programming in Go, we will start talking about network programming in Go, which involves programming applications that work over ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access