Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidIPv4 = errors.New("Invalid IPv4 address")
ErrInvalidIPv4 when invalid ip address provided
View Source
var ErrInvalidLine = errors.New("Invalid line structure")
ErrInvalidLine when csv line is invalid
Functions ¶
func GetCountry ¶
GetCountry returns the country which ip blongs to
func GetCountryMulti ¶
GetCountryMulti is a batch version of GetCountry function It allows you to pass many ip addresses as input, and will return countries as output the first index of slice is the answer for the first input , the second index for the second input and so on
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.