Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
revhPublic archive

About

A wrapper for http://ipinfo.io in Go

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Looking for new repo maintainer! please open an issue to condidate!

ipinfo

A wrapper for http://ipinfo.io written in Go language

package main

import (
	"log"
	"net"

	"github.com/RevH/ipinfo"
)

func main() {
	myIP, err := ipinfo.MyIP()
	if err != nil {
		log.Fatalln(err)
	}
	log.Println(myIP)

	foreignIP, err := ipinfo.ForeignIP("8.8.8.8")
	if err != nil {
		log.Fatalln(err)
	}
	log.Println(foreignIP)
}

About

A wrapper for http://ipinfo.io in Go

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages