Skip to content

giulianopa/HttpRedirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Http Redirect in Golang

This is meant mainly as a Go playground. The idea is to run a redirect service that logs the IP address of the remote host.

Build and run

To build:

$ cd HttpRedirect/
$ go get github.com/gorilla/mux
$ go build redirect.go

To run:

$ ./redirect

Then, from a browser: localhost:8080/r/<URL_to_redirect_to> To see the log: localhost:8080/log (or check the standard output).

Useful links

Releases

No releases published

Packages

No packages published

Languages