Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

iptrace.io Golang client

Golang client for iptrace web-service API to determine location of visitors based on their IP.

Installation

go get -u github.com/getiptrace/iptrace-go

usage

Get ip info:

package main

import (
	iptrace "github.com/getiptrace/iptrace-go"
	"fmt"
)

func main() {

	iptraceClient, err := iptrace.NewClient("API Key HERE")
	if err != nil {
		fmt.Println(err)
		return
	}

	response, err := iptraceClient.IPRepo.GetAllDataByIP("IP HERE")
	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(response)
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Golang client for iptrace web-service API to determine location of visitors based on their IP.

Resources

Packages

No packages published

Languages