childe / gohangout

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

filter KV: modify trimkey to trim_key #132

Closed answerwa closed 3 years ago

answerwa commented 3 years ago
    if trim_key, ok := config["trim_key"]; ok {
        plugin.trim_key = trim_key.(string)
    } else {
        plugin.trim_key = ""
    }

use 'trim_key' in source code 'filter/kv.go', but 'trimkey' in readme.md

childe commented 3 years ago

谢谢~