add
This commit is contained in:
1 parent
a1a1f0462a
commit
93ab736d55
23 files changed
+2414
No files matched your search
@@ -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"))
|
||||
}
|
||||
Reference in new issue
Block a user