Skip to content

Commit

Permalink
Update ip2location.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location committed Jan 9, 2020
1 parent 99ca9ff commit c8c6907
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ip2location.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This ip2location package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone,
// ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc,
// ISP, domain name, connection type, IDD code, area code, weather station code, station name, MCC, MNC,
// mobile brand, elevation, and usage type from IP address by using IP2Location database.
package ip2location

Expand Down Expand Up @@ -30,7 +30,7 @@ type ip2locationmeta struct {
ipv6columnsize uint32
}

// The IP2Locationrecord struct storees all of the available
// The IP2Locationrecord struct stores all of the available
// geolocation info found in the IP2Location database.
type IP2Locationrecord struct {
Country_short string
Expand Down Expand Up @@ -557,7 +557,7 @@ func Get_region(ipaddress string) IP2Locationrecord {
return query(ipaddress, region)
}

// Get_city will return the region name based on the queried IP address.
// Get_city will return the city name based on the queried IP address.
func Get_city(ipaddress string) IP2Locationrecord {
return query(ipaddress, city)
}
Expand Down Expand Up @@ -832,7 +832,7 @@ func query(ipaddress string, mode uint32) IP2Locationrecord {
return x
}

// Printrecord is used to output the geolocation for debugging purposes.
// Printrecord is used to output the geolocation data for debugging purposes.
func Printrecord(x IP2Locationrecord) {
fmt.Printf("country_short: %s\n", x.Country_short)
fmt.Printf("country_long: %s\n", x.Country_long)
Expand Down

0 comments on commit c8c6907

Please sign in to comment.