In this chapter, I finish describing the most useful standard library packages with unit testing, benchmarking, and logging. The logging features are fine, if a little basic, and there are plenty of third-party packages available for directing log messages to different destinations. The testing and benchmarking features are integrated into the
go command, but, as I explain, I am not enthusiastic about either feature. Table
31-1 summarizes the chapter.
Table 31-1Chapter Summary
Problem | Solution | Listing |
|---|
Create a unit test | Add a file ... |