Skip to content

Commit

Permalink
支持自定义返回数据解析
Browse files Browse the repository at this point in the history
  • Loading branch information
liuaix authored Jun 20, 2024
1 parent bd09af9 commit 8ff921f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/dove/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ func WithLogger(logger gsms.Logger) Option {
dove.logger = logger
}
}

func WithUnmarshal(unmarshal Unmarshal) Option {
return func(dove *Dove) {
dove.unmarshal = unmarshal
}
}

0 comments on commit 8ff921f

Please sign in to comment.