diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b05d56fd..40b07c1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: ["1.21", "1.22", "1.23"] + go-version: ["1.21", "1.22", "1.23", "1.24", "1.25"] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/klogr_slog_test.go b/klogr_slog_test.go index d112b0fd..34c1563a 100644 --- a/klogr_slog_test.go +++ b/klogr_slog_test.go @@ -43,7 +43,7 @@ func (c coordinates) LogValue() slog.Value { return slog.GroupValue(slog.Attr{Key: "X", Value: slog.IntValue(c.x)}, slog.Attr{Key: "Y", Value: slog.IntValue(c.y)}) } -func ExampleBackground_Slog() { +func ExampleBackground_slog() { // Temporarily reconfigure for output to stdout, with -v=4. state := klog.CaptureState() defer state.Restore() diff --git a/textlogger/textlogger_slog_test.go b/textlogger/textlogger_slog_test.go index f92c8a77..623d56c0 100644 --- a/textlogger/textlogger_slog_test.go +++ b/textlogger/textlogger_slog_test.go @@ -40,7 +40,7 @@ func (c coordinates) LogValue() slog.Value { return slog.GroupValue(slog.Attr{Key: "X", Value: slog.IntValue(c.x)}, slog.Attr{Key: "Y", Value: slog.IntValue(c.y)}) } -func ExampleNewLogger_Slog() { +func ExampleNewLogger_slog() { ts, _ := time.Parse(time.RFC3339, "2000-12-24T12:30:40Z") internal.Pid = 123 // To get consistent output for each run. config := textlogger.NewConfig(