kmgIpToCountry

package module
v0.0.0-...-d9b9543 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2015 License: MIT Imports: 3 Imported by: 0

README

kmgIpToCountry

Build Status GoDoc docs examples Total views GitHub issues GitHub stars GitHub forks MIT License

a golang Ip to country library with builtin data.

Documentation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Country

func Country(ip net.IP) (*geoip2.Country, error)

func EnsureInit

func EnsureInit()

func GetCountryIsoCode

func GetCountryIsoCode(ip net.IP) (code string, err error)

iso code look like CN, US

func MustGetCountryIsoCode

func MustGetCountryIsoCode(ip net.IP) (code string)

iso code look like CN, US

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL