1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:54:45 -07:00

log/slog: correct formatting

Code added in CL #558755 and CL #561315 (both via github) were not
appropriately formatted. Run gofmt to address this.

Change-Id: Iaf7abca9c2ad4e0fabecc417234b743b6b15e9c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/564719
Run-TryBot: Joel Sing <joel@sing.id.au>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Joel Sing 2024-02-17 02:21:11 +11:00 committed by Jonathan Amsterdam
parent 5a41204504
commit 4ce008d7d3
2 changed files with 7 additions and 7 deletions

View File

@ -59,8 +59,8 @@ func TestLevelMarshalJSON(t *testing.T) {
t.Fatal(err)
}
if !bytes.Equal(data, wantData) {
t.Errorf("got %s, want %s", string(data), string(wantData))
}
t.Errorf("got %s, want %s", string(data), string(wantData))
}
var got Level
if err := got.UnmarshalJSON(data); err != nil {
t.Fatal(err)
@ -78,8 +78,8 @@ func TestLevelMarshalText(t *testing.T) {
t.Fatal(err)
}
if !bytes.Equal(data, wantData) {
t.Errorf("got %s, want %s", string(data), string(wantData))
}
t.Errorf("got %s, want %s", string(data), string(wantData))
}
var got Level
if err := got.UnmarshalText(data); err != nil {
t.Fatal(err)

View File

@ -37,9 +37,9 @@ func TestValueEqual(t *testing.T) {
GroupValue(Bool("b", true), Int("i", 4)),
GroupValue(Bool("b", true), Int("j", 4)),
DurationValue(3 * time.Second),
DurationValue(2 * time.Second),
StringValue("foo"),
StringValue("fuu"),
DurationValue(2 * time.Second),
StringValue("foo"),
StringValue("fuu"),
}
for i, v1 := range vals {
for j, v2 := range vals {