fluent-logger-golang
fluent-logger-golang copied to clipboard
Passing struct pointers to `Post` method
I noticed that the Post method only supports passing values typed as interface{}, for example, only doing this is valid:
ptr := &struct{}{}
fluent.Post("tag", *ptr)
and passes this check
https://github.com/fluent/fluent-logger-golang/blob/993443fa213dcb480cf07fef6aaad3834246a7ea/fluent/fluent.go#L206-L209
Passing pointers generates error instead. Can we support passing a struct pointer (use .Elem().Field() to get its fields) and if not, what are possible concerns?
It will panicking on fluentd sys core