🔖 chore: Update variable name to follow naming conventions

This commit is contained in:
MartialBE
2024-05-29 04:58:28 +08:00
parent 021f8c65da
commit c2f8a79be2
14 changed files with 45 additions and 45 deletions

View File

@@ -50,7 +50,7 @@ func SendWSJsonRequest[T streamable](conn *websocket.Conn, data any, handlerPref
}
// 设置请求头
func (r *WSRequester) WithHeader(headers map[string]string) http.Header {
func (w *WSRequester) WithHeader(headers map[string]string) http.Header {
header := make(http.Header)
for k, v := range headers {
header.Set(k, v)