This is just simple example of a forward proxy working using goproxy.
It consists of a proxy server, a server and a client all of which are contained in their own folders.
Start the proxy server
cd proxy
go run main.goStart the server
cd server
go run main.goRun the client
cd client
go run main.goTo prove the requests are going via the proxy, it appends on the header:
"X-GoProxy:hello world" which should be visible in the servers logs.