Skip to content

Commit c8a6b6b

Browse files
committed
fix(gin): use octal literals for month and day in time.Date arguments
- Replace decimal literals with octal literals for month and day in the time.Date function argument Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent ecb3f7b commit c8a6b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func setupHTMLFiles(t *testing.T, mode string, tls bool, loadMethod func(*Engine
4646
})
4747
router.GET("/raw", func(c *Context) {
4848
c.HTML(http.StatusOK, "raw.tmpl", map[string]any{
49-
"now": time.Date(2017, 07, 01, 0, 0, 0, 0, time.UTC), //nolint:gofumpt
49+
"now": time.Date(2017, 0o7, 0o1, 0, 0, 0, 0, time.UTC),
5050
})
5151
})
5252
})

0 commit comments

Comments
 (0)