()
| 81 | } |
| 82 | |
| 83 | func ExampleLogger_Print() { |
| 84 | dst := bytes.Buffer{} |
| 85 | log := New(&dst) |
| 86 | |
| 87 | log.Print("hello world") |
| 88 | |
| 89 | fmt.Println(decodeIfBinaryToString(dst.Bytes())) |
| 90 | // Output: {"level":"debug","message":"hello world"} |
| 91 | } |
| 92 | |
| 93 | func ExampleLogger_Printf() { |
| 94 | dst := bytes.Buffer{} |
nothing calls this directly
no test coverage detected