From a5e97e892d078d634a852f414e61422a1183c173 Mon Sep 17 00:00:00 2001 From: Gustavo Caso Date: Mon, 13 Nov 2023 11:36:13 +0100 Subject: [PATCH] use const rather than var --- pkg/status/render/helpers.go | 2 +- pkg/status/render/render.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/status/render/helpers.go b/pkg/status/render/helpers.go index 6ecd44a67f2c97..d32c41c70f439d 100644 --- a/pkg/status/render/helpers.go +++ b/pkg/status/render/helpers.go @@ -72,7 +72,7 @@ func Textfmap() ttemplate.FuncMap { } } -var timeFormat = "2006-01-02 15:04:05.999 MST" +const timeFormat = "2006-01-02 15:04:05.999 MST" func doNotEscape(value string) htemplate.HTML { return htemplate.HTML(value) diff --git a/pkg/status/render/render.go b/pkg/status/render/render.go index 62f5bccbc5d279..a8edf8dd03b88a 100644 --- a/pkg/status/render/render.go +++ b/pkg/status/render/render.go @@ -3,8 +3,7 @@ // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. -// package render has all the formating options for status output - +// Package render has all the formating options for status output package render import (