To install the package, run:
go get -u github.com/go-zoox/http-proxy
package main
import (
"fmt"
"net/http"
"github.com/go-zoox/http-proxy"
)
func main() {
fmt.Println("Starting proxy at http://127.0.0.1:1080 ...")
http.ListenAndServe(":1080", httpproxy.New())
}
// curl --proxy http://127.0.0.1:1080 http://httpbin.org
GoZoox is released under the MIT License.