feat(gonf): support a GONF_HOST environment variable

This commit is contained in:
Julien Dessaux 2024-06-07 22:42:57 +02:00
parent 4a254746de
commit 1a4192b5c9
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 12 additions and 7 deletions

View file

@ -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 {