PHONG B NGUYEN

65%
Flag icon
we’ve also introduced another global variable, out, the io.Writer to which the result will be written. By having echo write through this variable, not directly to os.Stdout, the tests can substitute a different Writer implementation that records what was written for later inspection.
The Go Programming Language
Rate this book
Clear rating
Open Preview