check-location

command module
v0.0.0-...-18c8d95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 9 Imported by: 0

README

this is a golang service to check user location using their IP address.

The purpose of this service is to provide a simple way to check if a user is located in a particular country. This is part of an app I'm working on and this is a simple service from it.

Usage

Make a request to http://127.0.0.1:3005/geo/139.130.4.5, for example. You can omit an IP address to use your current IP address, or replace to use another. If the IP address is invalid, a HTTP 400 is returned.

Examples:


curl -X GET http://127.0.0.1:3005/geo/139.130.4.5

Publish Docker Image

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL