This commit is contained in:
esrrhs 2023-02-22 21:30:11 +08:00
parent 93ab736d55
commit fe571e8e4e

View File

@ -6,7 +6,7 @@ import (
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {
Load("./GeoLite2-Country.mmdb") LoadGeoDB("./GeoLite2-Country.mmdb")
fmt.Println(GetCountryIsoCode("39.106.101.133")) fmt.Println(GetCountryIsoCode("39.106.101.133"))
fmt.Println(GetCountryIsoCode("")) fmt.Println(GetCountryIsoCode(""))