具体可以在穿云云代理后台操作:https://console.cloudbypass.com/#/proxy/account

// Use Golang to request https://example.com/
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)
func main() {
host := ""
port := ""
username := ""
password := ""
url := "https://example.com/"
proxyUrl, _ := url.Parse("http://" + username + ":" + password + "@" + host + ":" + port)
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}注意:穿云代理IP仅提供海外动态代理IP,在中国大陆IP环境下直连时可能会出现不稳定的情况,但您可以通过以下两种方式解决:一是将其部署在香港等境外服务器上使用;二是在本地电脑端开启TUN模式的全局代理进行中转。