๐Interfaces WorkshopWORKSHOP
1
2
3
4
5
Step 1
Define a `Logger` interface with a single method `Log(level, msg string)`. Implement a `ConsoleLogger` struct whose `Log` method prints `"[level] msg"` to stdout. Create one and call `Log`.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)