pkg/geoloc: remove static country definition
This commit is contained in:
parent
cfbad73d1e
commit
2ca426ee4e
3 changed files with 0 additions and 1522 deletions
|
@ -4,18 +4,10 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/praserx/ipconv"
|
||||
)
|
||||
|
||||
func GetCountry(input string) *IPInfo {
|
||||
if c, exists := countries[strings.ToUpper(input)]; exists {
|
||||
return &c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetIPInfo(ipaddress string) (uint, error) {
|
||||
ip := net.ParseIP(ipaddress)
|
||||
if ip == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue