ceph-csi/vendor/github.com/gemalto/flume/json_encoder.go
Rakshith R e72ed593be rebase: vendor files required for kmip
Signed-off-by: Rakshith R <rar@redhat.com>
2022-08-18 07:41:42 +00:00

12 lines
280 B
Go

package flume
import "go.uber.org/zap/zapcore"
// NewJSONEncoder just hides the zap json encoder, to avoid exporting zap
func NewJSONEncoder(cfg *EncoderConfig) Encoder {
if cfg == nil {
cfg = &EncoderConfig{}
}
return zapcore.NewJSONEncoder(zapcore.EncoderConfig(*cfg))
}