feat kafka

This commit is contained in:
2026-01-23 21:22:58 +08:00
parent 1edebb439c
commit 4d661d0813
9 changed files with 296 additions and 7 deletions

View File

@@ -25,6 +25,9 @@ func (e *WrapErrors) StackTrace() string {
}
func ErrorsWrap(err error, message ...string) error {
if err == nil {
return nil
}
var e *WrapErrors
if !errors.As(err, &e) {
e = &WrapErrors{}
@@ -39,6 +42,9 @@ func ErrorsWrap(err error, message ...string) error {
}
func ErrorsWrapF(err error, message string, a ...any) error {
if err == nil {
return nil
}
var e *WrapErrors
if !errors.As(err, &e) {
e = &WrapErrors{}