Add missing fasthttp prefix in example usage (#1487)

This commit is contained in:
Oleksandr Redko
2023-02-10 12:18:30 +02:00
committed by GitHub
parent 8dcbc41e37
commit f111c7e548
+2 -2
View File
@@ -25,7 +25,7 @@ const (
// Example usage:
//
// c := &fasthttp.Client{
// Dial: FasthttpProxyHTTPDialer(),
// Dial: fasthttp.FasthttpProxyHTTPDialer(),
// }
func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
return FasthttpProxyHTTPDialerTimeout(0)
@@ -37,7 +37,7 @@ func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
// Example usage:
//
// c := &fasthttp.Client{
// Dial: FasthttpProxyHTTPDialerTimeout(time.Second * 2),
// Dial: fasthttp.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
// }
func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
proxier := httpproxy.FromEnvironment().ProxyFunc()