From c8a6b6b069b941525aedf09e0a4227ec031cecc4 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sun, 23 Nov 2025 12:15:37 +0800 Subject: [PATCH] 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 --- gin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin_test.go b/gin_test.go index cee1f3cc..eff84099 100644 --- a/gin_test.go +++ b/gin_test.go @@ -46,7 +46,7 @@ func setupHTMLFiles(t *testing.T, mode string, tls bool, loadMethod func(*Engine }) router.GET("/raw", func(c *Context) { c.HTML(http.StatusOK, "raw.tmpl", map[string]any{ - "now": time.Date(2017, 07, 01, 0, 0, 0, 0, time.UTC), //nolint:gofumpt + "now": time.Date(2017, 0o7, 0o1, 0, 0, 0, 0, time.UTC), }) }) })