childe / gohangout

使用 golang 模仿的 Logstash。用于消费 Kafka 数据,处理后写入 ES、Clickhouse 等。
MIT License
1.01k stars 234 forks source link

sprig 函数结果不符合预期 #150

Closed aragornlucky closed 1 year ago

aragornlucky commented 3 years ago

image 如图所示代码 x.(int64) 当 x为interface{} 时, 转换基本是失败的。 导致不会产生预期的结果

childe commented 3 years ago

@aragornzhao 先使用 Convert 转换一下。