LoggingDrain is go implemented for drain3
go run examples/stdin.go
run unittest
go test .
run benchmark
go test -bench=.
goos: darwin
goarch: arm64
pkg: github.com/palanqu/loggingdrain
BenchmarkBuildTree-8 1632832 699.0 ns/op
BenchmarkMatchTree-8 3431210 349.4 ns/op
BenchmarkUnmarshalJson-8 378432 3172 ns/op
PASS
ok github.com/palanqu/loggingdrain 4.840s