From 1a4192b5c94a2145f8ac6504f30643d9a838bff0 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 7 Jun 2024 22:42:57 +0200 Subject: feat(gonf): support a GONF_HOST environment variable --- pkg/values.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/values.go') diff --git a/pkg/values.go b/pkg/values.go index c85de01..d18b499 100644 --- a/pkg/values.go +++ b/pkg/values.go @@ -65,13 +65,13 @@ type IntValue struct { } func (i IntValue) Bytes() []byte { - return []byte(fmt.Sprint(i.value)) + return []byte(strconv.Itoa(i.value)) } func (i IntValue) Int() (int, error) { return i.value, nil } func (i IntValue) String() string { - return fmt.Sprint(i.value) + return strconv.Itoa(i.value) } type StringsListValue struct { -- cgit v1.2.3