Skip to content

Commit

Permalink
增加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
lehoqi committed Dec 28, 2023
1 parent 7874d95 commit 17eb33e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions util/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type URIModifier func(uri string) string

var uriModifier URIModifier

// DefaultHTTPClient 默认httpClient
var DefaultHTTPClient = http.DefaultClient

// SetURIModifier 设置URI修改器
Expand Down
1 change: 1 addition & 0 deletions wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (wc *Wechat) GetWork(cfg *workConfig.Config) *work.Work {
return work.NewWork(cfg)
}

// SetHttpClient 设置httpClient
func (wc *Wechat) SetHttpClient(client *http.Client) {

Check failure on line 88 in wechat.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.19)

method SetHttpClient should be SetHTTPClient (golint)
util.DefaultHTTPClient = client
}

0 comments on commit 17eb33e

Please sign in to comment.