pkg/geoloc: remove static country definition

This commit is contained in:
Tom Neuber 2024-01-28 10:52:14 +01:00
parent cfbad73d1e
commit 2ca426ee4e
Signed by: tom
GPG key ID: F17EFE4272D89FF6
3 changed files with 0 additions and 1522 deletions

View file

@ -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 {