14 lines
183 B
Go
14 lines
183 B
Go
package updateip
|
|
|
|
import "testing"
|
|
|
|
func TestResolveCurrentIP(t *testing.T) {
|
|
r := new(Ipify)
|
|
|
|
v, err := r.CurrentIP()
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
t.Log("current IP:", v)
|
|
}
|