chore(gonf): fix go vet and staticcheck errors
This commit is contained in:
parent
cae4735276
commit
72be13c3e9
6 changed files with 4 additions and 18 deletions
|
@ -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 ------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue