fix: 修复withOptions无效的问题。

main v1.2.2
NoahLan 11 months ago
parent 3be153c3e9
commit b567a816ea

@ -6,7 +6,12 @@ import (
func WithOptions(o *Options) Option { func WithOptions(o *Options) Option {
return func(opt *Options) { 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
} }
} }

Loading…
Cancel
Save