diff options
author | Julien Dessaux | 2024-06-07 22:42:57 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-06-07 22:42:57 +0200 |
commit | 1a4192b5c94a2145f8ac6504f30643d9a838bff0 (patch) | |
tree | 6fc830ad0a42f2167b2a7aa9a110e0b3dd4d06c0 /pkg | |
parent | chore(gonf): removed opinionated static checkers (diff) | |
download | gonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.tar.gz gonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.tar.bz2 gonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.zip |
feat(gonf): support a GONF_HOST environment variable
Diffstat (limited to '')
-rw-r--r-- | pkg/values.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |