Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
socks
✓ github.com/btcsuite/go-socks/socks
Dial through a SOCKS5 proxy.
package main
import (
"fmt"
"github.com/btcsuite/go-socks/socks"
)
func main() {
proxy := socks.Dial("tcp", "127.0.0.1:9050")
conn, err := proxy.Dial("tcp", "example.com:80")
if err != nil {
panic(err)
}
fmt.Println(conn)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20170105172521-4720035b7bfdlatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.