MCPcopy Index your code
hub / github.com/MengMengCode/GetRealityDomain / TryDownloadGeoLite2DB

Function TryDownloadGeoLite2DB

utils.go:467–475  ·  view source on GitHub ↗

TryDownloadGeoLite2DB 尝试下载GeoLite2数据库,失败时不报错

(filePath string)

Source from the content-addressed store, hash-verified

465
466// TryDownloadGeoLite2DB 尝试下载GeoLite2数据库,失败时不报错
467func TryDownloadGeoLite2DB(filePath string) bool {
468 err := DownloadGeoLite2DB(filePath)
469 if err != nil {
470 printError(fmt.Sprintf("下载GeoLite2数据库失败: %v", err))
471 printInfo("将跳过地理位置功能")
472 return false
473 }
474 return true
475}

Callers 1

scanAddressFunction · 0.85

Calls 3

DownloadGeoLite2DBFunction · 0.85
printErrorFunction · 0.85
printInfoFunction · 0.85

Tested by

no test coverage detected