Skip to content

Commit a9f20c8

Browse files
authored
Merge pull request #428 from pohly/test-go-update
test with 1.24 and 1.25
2 parents e0da7e7 + d434107 commit a9f20c8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: ["1.21", "1.22", "1.23"]
7+
go-version: ["1.21", "1.22", "1.23", "1.24", "1.25"]
88
platform: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:

klogr_slog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c coordinates) LogValue() slog.Value {
4343
return slog.GroupValue(slog.Attr{Key: "X", Value: slog.IntValue(c.x)}, slog.Attr{Key: "Y", Value: slog.IntValue(c.y)})
4444
}
4545

46-
func ExampleBackground_Slog() {
46+
func ExampleBackground_slog() {
4747
// Temporarily reconfigure for output to stdout, with -v=4.
4848
state := klog.CaptureState()
4949
defer state.Restore()

textlogger/textlogger_slog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (c coordinates) LogValue() slog.Value {
4040
return slog.GroupValue(slog.Attr{Key: "X", Value: slog.IntValue(c.x)}, slog.Attr{Key: "Y", Value: slog.IntValue(c.y)})
4141
}
4242

43-
func ExampleNewLogger_Slog() {
43+
func ExampleNewLogger_slog() {
4444
ts, _ := time.Parse(time.RFC3339, "2000-12-24T12:30:40Z")
4545
internal.Pid = 123 // To get consistent output for each run.
4646
config := textlogger.NewConfig(

0 commit comments

Comments
 (0)