PHONG B NGUYEN

69%
Flag icon
The second purpose is that examples are executable tests run by go test. If the example function contains a final // Output: comment like the one above, the test driver will execute the function and check that what it printed to its standard output matches the text within the comment.
The Go Programming Language
Rate this book
Clear rating
Open Preview