https://github.com/c1982/ripego
IP Whois Golang Package
https://github.com/c1982/ripego
afrinic apnic arin golang lacnic ripe whois
Last synced: 4 months ago
JSON representation
IP Whois Golang Package
- Host: GitHub
- URL: https://github.com/c1982/ripego
- Owner: c1982
- License: gpl-3.0
- Created: 2016-02-05T10:06:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T22:56:58.000Z (about 6 years ago)
- Last Synced: 2024-06-20T08:14:56.884Z (almost 2 years ago)
- Topics: afrinic, apnic, arin, golang, lacnic, ripe, whois
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 34
- Watchers: 5
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ripego
This package detects the coordination center for the IPv4 address and makes IP Whois lookup. Retrieve all informations about IP adress. Supported registries: ripe, arin, apnic, afrinic, lacnic
Bu paket IPv4 adresini ilgili koordinasyon merkezini tespit ederek Whois sorgulaması yapar ve IP hakkında bilgiyi getirir. Desteklediği kordinasyon merkezleri: ripe, arin, apnic, afrinic, lacnic
### Install / Yükleme
```bash
$ go get github.com/c1982/ripego
```
### Usage / Kullanım
```go
package main
import (
"fmt"
"log"
"ripego"
)
func main() {
w, err := ripego.IPLookup("178.18.196.250")
if err != nil {
log.Fatal(err)
}
fmt.Println("Inetnum: " + w.Inetnum)
fmt.Println("Desc: " + w.Descr)
}
//Output:
//Inetnum: 178.18.192.0 - 178.18.207.255
//Desc: Vargonen Teknoloji ve Bilisim Sanayi Ticaret Anonim Sirketi
```
### Contact
aspsrc@gmail.com
Oğuzhan