conv types
This commit is contained in:
parent
0465225e39
commit
5b52490495
@ -21,5 +21,5 @@ func (t *TsIpcApi) Div(
|
|||||||
return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err)
|
return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err)
|
||||||
}
|
}
|
||||||
_ = results
|
_ = results
|
||||||
return results[0].(int), nil
|
return int(results[0].(float64)), nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,9 @@ import (
|
|||||||
"efprojects.com/kitten-ipc/kitcom/internal/api"
|
"efprojects.com/kitten-ipc/kitcom/internal/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// todo: check int overflow
|
||||||
|
// todo: check float is whole
|
||||||
|
|
||||||
//go:embed gogen.tmpl
|
//go:embed gogen.tmpl
|
||||||
var templateString string
|
var templateString string
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user