golang obtains the real address according to the IP (not connected to the Internet, stand-alone version)

package main

import (
	"fmt"
	"github.com/yangtizi/cz88"
)

func main() {
	fmt.Println(cz88.GetAddress("47.56.100.100"))
}

 

$go mod init cz88

$go build -o cz88.exe

$./cz88.exe

香港 阿里云


 

Guess you like

Origin blog.csdn.net/warrially/article/details/105936329