Home / Integrations

Proxies in Go

Replace LOGIN and PASSWORD with the values from your dashboard.

Example

package main

import (
	"fmt"
	"net/http"
	"net/url"
)

func main() {
	proxy, _ := url.Parse("http://LOGIN:PASSWORD@gate.lyraproxy.com:7000")
	client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxy)}}
	res, err := client.Get("https://example.com/")
	if err != nil {
		panic(err)
	}
	fmt.Println(res.Status)
}

The Go standard library takes a proxy address with a login and password through http.ProxyURL, no extra packages are needed.

Other integrations

Proxies are ready right after payment

Pick a plan and volume in the dashboard. You can change the country, city and session type after purchase as often as you like.

Create an account