An output comment marks the following commented lines as the expected standard output for a Go example function. Go compares that output when the example runs under testing. section 2.1.2
Testing printed output
func Example_main() { main() // Output: // Hello world } Run `go test` to execute the example and compare its printed output with the expected lines. section 2.1.2
