Skip to content

oashnic/ip-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapper ip-api.com

GoDoc Go Report Card

Golang wrapper for ip-api.com service

Install

Install the package with:

go get github.com/oashnic/ip-api-wrapper

Import it with:

import "github.com/oashnic/ip-api-wrapper"

and use ipapi as the package name inside the code.

Example

package main

import (
	"fmt"
	"gitlab.com/oashnic/ip-api-wrapper"
)

func main() {
	geo, err := GetLocation("8.8.8.8", LOCAL_ENGLISH)
    
	if err != nil {
		panic(err)
    }

	fmt.Println("AS: " + geo.AS)
}

About

Wrapper for ip-api.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages