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.
• 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 |
9 years ago | |
|---|---|---|
| vendor | 9 years ago | |
| .gitignore | 9 years ago | |
| LICENSE | 9 years ago | |
| README.md | 9 years ago | |
| ip.go | 9 years ago | |
| logger.go | 9 years ago | |
| server.go | 9 years ago | |
| what-is-my-ip.go | 9 years ago | |
README.md
what-is-my-ip
Simple app to get the public IP address of a client