From 0476b2dd5c56d5a689d6a8fe4a5a6c0e259e7cda Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Sep 2024 12:31:43 +0300 Subject: [PATCH] update to latest micro, optimize flatten Signed-off-by: Vasiliy Tolstov --- json/json.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/json/json.go b/json/json.go index 6daad65..70e3405 100644 --- a/json/json.go +++ b/json/json.go @@ -258,3 +258,7 @@ func (c *jsonCodecV2) String() string { func NewCodec(opts ...codec.Option) *jsonCodec { return &jsonCodec{opts: codec.NewOptions(opts...)} } + +func NewCodecV2(opts ...codec.Option) *jsonCodecV2 { + return &jsonCodecV2{opts: codec.NewOptions(opts...)} +}