go-http-proxy

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 9 Imported by: 0

README

go-http-proxy

A simple go program to proxy http request through a server with caching

Install requirements

For now, since there are no prebuilt binaries, you need to have go installed

apt install golang

Usage/Installation

Using go get
go get -v https://github.com/GQDeltex/go-http-proxy.git
Using git and go install

Clone the repo into your go workspace and get the dependencies

git clone https://github.com/GQDeltex/go-http-proxy.git ~/go/src/github.com/GQDeltex/go-http-proxyk
cd ~/go/src/github.com/GQDeltex/go-http-proxy
go mod download

After that you can either build the binary in that folder or install it into ~/go/bin/go-http-proxy

go build # Executable now in ./go-http-proxy
# Or install
go install # Executable now in ~/go/bin/go-http-proxy

Now you can run the proxy by starting the Executable

./go-http-proxy
# Or if you've used go install
~/go/bin/go-http-proxy
Adding to PATH

You can even add ~/go/bin to your path to have it even easier

# ~/.bashrc
PATH=$PATH:~/go/bin

Now you can run by typing

go-http-proxy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL