Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert writes the MaxMind GeoIP2 or GeoLite2 CSV in the `input` io.Reader to the Writer `output` using the network represenation specified by setting `cidr`, ipRange`, or `intRange` to true. If none of these are set to true, it will strip off the network information.
func ConvertFile ¶
func ConvertFile( inputFile string, outputFile string, cidr bool, ipRange bool, intRange bool, ) error
ConvertFile converts the MaxMind GeoIP2 or GeoLite2 CSV file `inputFile` to `outputFile` file using a different representation of the network. The representation can be specified by setting one or more of `cidr`, `ipRange`, or `intRange` to true. If none of these are set to true, it will strip off the network information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.