You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
b0b44a992f
• If a request comes in to the root path, look at accept header and parse it. Check for hmtl, json, and text. If no known accept header comes in, return text/plain • Add route for /json that always returns json response • Add route for /text that always returns text response • Add route for /html that always returns html response |
8 years ago | |
---|---|---|
vendor | 8 years ago | |
.gitignore | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
ip.go | 8 years ago | |
logger.go | 8 years ago | |
server.go | 8 years ago | |
what-is-my-ip.go | 8 years ago |
README.md
what-is-my-ip
Simple app to get the public IP address of a client