Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 327 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 327 Bytes

Ipgetter

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

Usage

package main

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

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

Command Usage

$ go install github.com/kejunmao/ipgetter/...
$ ipgetter
8.8.8.8