Skip to content

Commit cb6d07e

Browse files
committed
Fix compilation
1 parent 68215bb commit cb6d07e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

sloggers/sloghuman/sloghuman.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ func (s *humanSink) writeString(str string) {
4444

4545
// Human creates a logger that writes logs in a human
4646
// readable YAML like format to the given writer.
47-
func Make(w io.Writer, opts *slog.Options) slog.Logger {
47+
func Make(w io.Writer) slog.Logger {
4848
return slog.Make(&humanSink{
4949
w: w,
5050
color: humanfmt.IsTTY(w),
51-
}, opts)
51+
})
5252
}

sloggers/slogjson/slogjson.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import (
88

99
// Make creates a logger that writes JSON logs
1010
// to the given writer. The format is as follows:
11-
func Make(w io.Writer, opts *slog.Options) slog.Logger {
11+
func Make(w io.Writer) slog.Logger {
1212
panic("TODO")
1313
}

sloggers/slogtest/test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import (
1313
// TestOptions represents the options for the logger returned
1414
// by Test.
1515
type TestOptions struct {
16-
*slog.Options
17-
1816
// IgnoreErrors causes the test logger to not fatal the test
1917
// on Fatal and not error the test on Error or Critical.
2018
IgnoreErrors bool
@@ -28,7 +26,7 @@ func Make(tb testing.TB, opts *TestOptions) slog.Logger {
2826
return slog.Make(testSink{
2927
tb: tb,
3028
opts: opts,
31-
}, opts.Options)
29+
})
3230
}
3331

3432
type testSink struct {

slogval/reflect.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ func Reflect(fs []slog.Field) Map {
2020
return m
2121
}
2222

23+
// TODO
24+
func ReflectMap() {
25+
panic("TODO")
26+
}
27+
2328
// TODO remove later.
2429
func ReflectUnsafe(v interface{}) Value {
2530
return reflectValue(reflect.ValueOf(v))

0 commit comments

Comments
 (0)