qinglong-go/utils/client.go

19 lines
214 B
Go
Raw Normal View History

2023-01-12 03:21:57 +00:00
package utils
import (
"github.com/imroc/req/v3"
"net/http"
)
var (
client *req.Client
)
func init() {
client = req.C().SetProxy(http.ProxyFromEnvironment)
}
func GetClient() *req.Client {
return client
}