Puzzle 11 Explanation: Go Log
Understand the concept of log in Go.
We'll cover the following...
We'll cover the following...
Try it yourself
Try executing the code below to see the result.
Explanation
The %v verb will print all the struct fields.
We’d expect the teaser code to print{Hello 2009-11-10 00:00:00 +0000 UTC}.
However, it doesn’t, due to the way the Log struct is defined. In line 11 there is a field with no name, just a type. This is called ...