summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJulien Dessaux2024-06-07 22:42:57 +0200
committerJulien Dessaux2024-06-07 22:42:57 +0200
commit1a4192b5c94a2145f8ac6504f30643d9a838bff0 (patch)
tree6fc830ad0a42f2167b2a7aa9a110e0b3dd4d06c0 /pkg
parentchore(gonf): removed opinionated static checkers (diff)
downloadgonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.tar.gz
gonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.tar.bz2
gonf-1a4192b5c94a2145f8ac6504f30643d9a838bff0.zip
feat(gonf): support a GONF_HOST environment variable
Diffstat (limited to 'pkg')
-rw-r--r--pkg/values.go4
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 {