优化参数名

This commit is contained in:
Yun
2024-01-12 21:06:13 +08:00
parent 5159d5d258
commit 503e4503ab
4 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ type Option func(*clientOptions)
/**
* 设置超时时间
*/
func SetTimeOut(t time.Duration) Option {
func SetOptionTimeOut(t time.Duration) Option {
return func(options *clientOptions) {
options.TimeOut = t
}
@@ -27,7 +27,7 @@ func SetTimeOut(t time.Duration) Option {
/**
* 不校验HTTPS证书
*/
func SetTLSInsecureSkipVerify() Option {
func SetOptionTLSInsecureSkipVerify() Option {
return func(options *clientOptions) {
options.InsecureSkipVerify = true
}