From b567a816ea72d53f58f985123582374096133609 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Fri, 15 Dec 2023 23:13:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DwithOptions=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncmd/options.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ncmd/options.go b/ncmd/options.go index 6495a34..a166ab4 100644 --- a/ncmd/options.go +++ b/ncmd/options.go @@ -6,7 +6,12 @@ import ( func WithOptions(o *Options) Option { return func(opt *Options) { - opt = o + opt.Marshaler = o.Marshaler + opt.DevMode = o.DevMode + opt.Buffered = o.Buffered + opt.Streaming = o.Streaming + opt.LineBufferSize = o.LineBufferSize + opt.CombinedOutput = o.CombinedOutput } }