18 lines
209 B
Go
18 lines
209 B
Go
package ipx_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"code.yun.ink/pkg/ipx"
|
|
)
|
|
|
|
func TestPublicIP(t *testing.T) {
|
|
ip := ipx.GetPublicIP()
|
|
t.Log(ip)
|
|
}
|
|
|
|
func TestLocalIP(t *testing.T) {
|
|
ip := ipx.GetLocalIP()
|
|
t.Log(ip)
|
|
}
|