chore: fix some function names in comment
Signed-off-by: zhuhaicity <zhuhai@52it.net>
This commit is contained in:
parent
a6ea8fe4ed
commit
13211af256
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ func AddCacheTTLHeader(rt http.RoundTripper, ttl time.Duration) http.RoundTrippe
|
|||
}}
|
||||
}
|
||||
|
||||
// AddAuthToken adds an authentication token header for the host specified by the request.
|
||||
// AddAuthTokenHeader adds an authentication token header for the host specified by the request.
|
||||
func AddAuthTokenHeader(rt http.RoundTripper, cfg tokenGetter) http.RoundTripper {
|
||||
return &funcTripper{roundTrip: func(req *http.Request) (*http.Response, error) {
|
||||
// If the header is already set in the request, don't overwrite it.
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ func FlagErrorf(format string, args ...interface{}) error {
|
|||
return FlagErrorWrap(fmt.Errorf(format, args...))
|
||||
}
|
||||
|
||||
// FlagError returns a new FlagError that wraps the specified error.
|
||||
// FlagErrorWrap returns a new FlagError that wraps the specified error.
|
||||
func FlagErrorWrap(err error) error { return &FlagError{err} }
|
||||
|
||||
// A *FlagError indicates an error processing command-line flags or other arguments.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue