Update language type to Language for consistency across MaxMind service
This commit is contained in:
@@ -19,7 +19,7 @@ const (
|
||||
// City is a structure that contains information about the IP address.
|
||||
type City struct {
|
||||
// lang is a language.
|
||||
lang language
|
||||
lang Language
|
||||
}
|
||||
|
||||
// NewCity creates a new City instance.
|
||||
@@ -27,7 +27,7 @@ type City struct {
|
||||
// @param logger - a logger
|
||||
// @param dir - a directory for storing MaxMind GeoIP2 database
|
||||
// @return geoip2.RefreshableGeoIP2 - a MaxMind GeoIP2 database service
|
||||
func NewCity(download *Download, logger geoip2.Logger, dir string, language language) geoip2.RefreshableGeoIP2 {
|
||||
func NewCity(download *Download, logger geoip2.Logger, dir string, language Language) geoip2.RefreshableGeoIP2 {
|
||||
city := &City{
|
||||
lang: language,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user