From e6ed856fc972b366839583bba90d8a3a0a606e69 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Sat, 21 Dec 2024 22:37:17 +0800 Subject: [PATCH] stock rsi push to elasticsearch --- modules/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util.go b/modules/util.go index dca46b6..115da59 100644 --- a/modules/util.go +++ b/modules/util.go @@ -82,7 +82,7 @@ func ToString(val interface{}) string { } else if reflect.TypeOf(val).Name() == "int64" { valstr = strconv.FormatInt(val.(int64), 16) } else if reflect.TypeOf(val).Name() == "int" { - valstr = strconv.FormatInt(val.(int64), 16) + valstr = strconv.FormatInt((val).(int64), 16) } return valstr }