Move network/environment to netenv

This commit is contained in:
Daniel
2020-04-02 17:08:02 +02:00
parent 1a3f9a75da
commit dc32e72b3a
21 changed files with 34 additions and 68 deletions

13
netenv/location_test.go Normal file
View 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())
}