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.go
Start the server
cd server
go run main.go
Run the client
cd client
go run main.go
To 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.