File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
"go.coder.com/slog"
6
6
"go.coder.com/slog/stderrlog"
7
+ "go.coder.com/slog/testlog"
8
+ "testing"
7
9
)
8
10
9
11
func Example_stderr () {
@@ -23,21 +25,21 @@ func Example_stderr() {
23
25
)
24
26
}
25
27
26
- // func Example_test() {
27
- // // Nil here but would be provided by the testing framework.
28
- // var t *testing.T
29
- //
30
- // testlog.Info(t, "my message here",
31
- // "field_name", "something or the other",
32
- // "some_map", map[string]interface{}{
33
- // "nested_fields": "wowow",
34
- // },
35
- // "some slice", []interface{}{
36
- // 1,
37
- // "foof",
38
- // "bar",
39
- // true,
40
- // },
41
- // log .Component, "test",
42
- // )
43
- // }
28
+ func Example_test () {
29
+ // Nil here but would be provided by the testing framework.
30
+ var t * testing.T
31
+
32
+ testlog .Info (t , "my message here" ,
33
+ "field_name" , "something or the other" ,
34
+ "some_map" , map [string ]interface {}{
35
+ "nested_fields" : "wowow" ,
36
+ },
37
+ "some slice" , []interface {}{
38
+ 1 ,
39
+ "foof" ,
40
+ "bar" ,
41
+ true ,
42
+ },
43
+ slog .Component ( "test" ) ,
44
+ )
45
+ }
You can’t perform that action at this time.
0 commit comments