This commit is contained in:
esrrhs committed 2023-02-22 21:29:12 +08:00
1 parent a1a1f0462a
commit 93ab736d55
23 files changed
+2414

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package main
import (
"fmt"
"testing"
)
func TestNew(t *testing.T) {
Load("./GeoLite2-Country.mmdb")
fmt.Println(GetCountryIsoCode("39.106.101.133"))
fmt.Println(GetCountryIsoCode(""))
fmt.Println(GetCountryIsoCode("aa"))
fmt.Println(GetCountryIsoCode("39.106.101.133:14234"))
fmt.Println(GetCountryIsoCode("192.168.1.121"))
}