Skip to content

Commit

Permalink
refactor: 删除上个版本被标记为过时的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Apr 15, 2024
1 parent a61afbe commit f12fa3e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions option.go
Original file line number Diff line number Diff line change
@@ -56,14 +56,6 @@ func WriteRecovery(status int, out io.Writer) Option {
})
}

// Deprecated: 使用 [WriteRecovery] 代替
func WriterRecovery(status int, out io.Writer) Option {
return Recovery(func(w http.ResponseWriter, msg any) {
http.Error(w, http.StatusText(status), status)
source.DumpStack(out, 4, msg)
})
}

// LogRecovery 将错误信息输出到日志
//
// status 表示向客户端输出的状态码;

0 comments on commit f12fa3e

Please sign in to comment.