gitee.com/h79/goutils@v1.22.10/common/system/net_test.go (about)

     1  package system
     2  
     3  import (
     4  	"net"
     5  	"testing"
     6  )
     7  
     8  func TestIsPublicIP(t *testing.T) {
     9  
    10  	ip, _ := IPX().GetResolveIP()
    11  
    12  	t.Log(ip)
    13  
    14  	GetIPType(net.ParseIP("127.0.0.1"))
    15  }