summaryrefslogtreecommitdiff
path: root/pkg/values.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-04-30 08:34:26 +0200
committerJulien Dessaux2024-04-30 08:34:26 +0200
commit72be13c3e986aaee110b8f9abc78f5afcef22727 (patch)
tree45f4b0ca60657cd2beccf639b9e7fe6db99ac0bd /pkg/values.go
parentchore(gonf): factorise hostflag management (diff)
downloadgonf-72be13c3e986aaee110b8f9abc78f5afcef22727.tar.gz
gonf-72be13c3e986aaee110b8f9abc78f5afcef22727.tar.bz2
gonf-72be13c3e986aaee110b8f9abc78f5afcef22727.zip
chore(gonf): fix go vet and staticcheck errors
Diffstat (limited to 'pkg/values.go')
-rw-r--r--pkg/values.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/values.go b/pkg/values.go
index bb82787..25f31e4 100644
--- a/pkg/values.go
+++ b/pkg/values.go
@@ -68,13 +68,13 @@ type IntValue struct {
}
func (i IntValue) Bytes() []byte {
- return []byte(string(i.value))
+ return []byte(fmt.Sprint(i.value))
}
func (i IntValue) Int() (int, error) {
return i.value, nil
}
func (i IntValue) String() string {
- return string(i.value)
+ return fmt.Sprint(i.value)
}
// ----- StringsListValue ------------------------------------------------------