teageo

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *geoip2.Reader = nil

Functions

func ConvertName

func ConvertName(name string) string

纠正名称

func IP2City added in v0.1.5

func IP2City(ip string, cache bool) (city *geoip2.City, err error)

获取City数据

func SetupDB added in v0.1.5

func SetupDB()

加载Geo-City数据库

Types

This section is empty.

Jump to

Keyboard shortcuts

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