refine comments for for four files (#5011)

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go
This commit is contained in:
Regan Yue
2022-07-09 18:10:19 +08:00
committed by GitHub
parent 49be2581d1
commit 493e7db20b
4 changed files with 31 additions and 31 deletions

View File

@@ -33,7 +33,7 @@ func WithEnableCookie(enable bool) ClientOption {
}
}
// WithEnableCookie will adds UA in all subsequent request
// WithUserAgent will adds UA in all subsequent request
func WithUserAgent(userAgent string) ClientOption {
return func(client *Client) {
client.Setting.UserAgent = userAgent
@@ -105,7 +105,7 @@ func WithCookie(cookie *http.Cookie) BeegoHTTPRequestOption {
}
}
// Withtokenfactory adds a custom function to set Authorization
// WithTokenFactory adds a custom function to set Authorization
func WithTokenFactory(tokenFactory func() string) BeegoHTTPRequestOption {
return func(request *BeegoHTTPRequest) {
t := tokenFactory()