Skip to content

Commit

Permalink
Merge pull request #1 from liuaix/main
Browse files Browse the repository at this point in the history
支持自定义返回数据解析
  • Loading branch information
maiqingqiang authored Jun 20, 2024
2 parents bd09af9 + 8ff921f commit 66b6786
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 66b6786

Please sign in to comment.