Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snekromonoro/go-proxyparser

Library in Golang to parse a proxy
https://github.com/snekromonoro/go-proxyparser

Last synced: 2 days ago
JSON representation

Library in Golang to parse a proxy

Awesome Lists containing this project

README

        

# Go-ProxyParser
Library in Golang to parse proxy URL details

## Installation

```sh
go get github.com/snekROmonoro/Go-ProxyParser
```

## Usage

```go
import (
proxyparser "github.com/snekROmonoro/Go-ProxyParser"
)

...

var proxyStr = "http://username:password@host:port"
var ProxyData *proxyparser.ProxyData
var parsedProxySuccessfully = false

ProxyData, parsedProxySuccessfully = proxyparser.GetProxyData(proxyStr)
```