diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-10 12:18:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 18:18:30 +0800 |
commit | f111c7e548b46458069627d10da1fba11d457686 (patch) | |
tree | e9d9419cffa61355aa4136c4128f62e8e6a78afb /fasthttpproxy | |
parent | test: use T.TempDir instead of MkdirTemp (#1485) (diff) | |
download | fasthttp-f111c7e548b46458069627d10da1fba11d457686.tar.gz fasthttp-f111c7e548b46458069627d10da1fba11d457686.tar.bz2 fasthttp-f111c7e548b46458069627d10da1fba11d457686.zip |
Add missing fasthttp prefix in example usage (#1487)
Diffstat (limited to 'fasthttpproxy')
-rw-r--r-- | fasthttpproxy/proxy_env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fasthttpproxy/proxy_env.go b/fasthttpproxy/proxy_env.go index 3f91440..d115e2c 100644 --- a/fasthttpproxy/proxy_env.go +++ b/fasthttpproxy/proxy_env.go @@ -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() |