Move network/environment to netenv
This commit is contained in:
13
netenv/location_test.go
Normal file
13
netenv/location_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build root
|
||||
|
||||
package netenv
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestGetApproximateInternetLocation(t *testing.T) {
|
||||
ip, err := GetApproximateInternetLocation()
|
||||
if err != nil {
|
||||
t.Errorf("GetApproximateInternetLocation failed: %s", err)
|
||||
}
|
||||
t.Logf("GetApproximateInternetLocation: %s", ip.String())
|
||||
}
|
||||
Reference in New Issue
Block a user