An open API service indexing awesome lists of open source software.

https://github.com/kejunmao/ipgetter

This package is designed to fetch your external IP address from the internet.
https://github.com/kejunmao/ipgetter

ip ipgetter myip

Last synced: 7 months ago
JSON representation

This package is designed to fetch your external IP address from the internet.

Awesome Lists containing this project

README

          

# Ipgetter

This package is designed to fetch your external IP address from the internet.

## Usage

```go
package main

import (
"fmt"
"github.com/kejunmao/ipgetter"
)

func main() {
fmt.Println(ipgetter.Myip())
}
```

## Command Usage

```shell script
$ go install github.com/kejunmao/ipgetter/...
$ ipgetter
8.8.8.8
```