Versions in this module Expand all Collapse all v1 v1.2.4 Mar 13, 2026 Changes in this version + type City struct + CountryCode string + CountryID int64 + CreatedAt time.Time + Flag int64 + ID int64 + Latitude float64 + Longitude float64 + Name string + StateCode string + StateID int64 + UpdatedAt time.Time + WikiDataId sql.NullString + type Country struct + Capital sql.NullString + CreatedAt sql.NullTime + Currency sql.NullString + CurrencyName sql.NullString + CurrencySymbol sql.NullString + Emoji sql.NullString + EmojiU sql.NullString + Flag int64 + ID int64 + Iso2 sql.NullString + Iso3 sql.NullString + Latitude sql.NullFloat64 + Longitude sql.NullFloat64 + Name string + Nationality sql.NullString + Native sql.NullString + NumericCode sql.NullString + Phonecode sql.NullString + Region sql.NullString + RegionID sql.NullInt64 + Subregion sql.NullString + SubregionID sql.NullInt64 + Timezones sql.NullString + Tld sql.NullString + Translations sql.NullString + UpdatedAt time.Time + WikiDataId sql.NullString + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type GetCityLatLongParams struct + CountryCode string + Name string + StateCode string + type GetCityLatLongRow struct + Latitude float64 + Longitude float64 + type GetStateCodeParams struct + CountryCode string + Name string + type LatLong struct + Latitude float64 + Longitude float64 + type LocationService struct + func NewLocationService() (*LocationService, error) + func (ls *LocationService) Close() error + func (ls *LocationService) GetLatLong(ctx context.Context, city, state, country string) (*LatLong, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) GetCityLatLong(ctx context.Context, arg GetCityLatLongParams) (GetCityLatLongRow, error) + func (q *Queries) GetCountryCode(ctx context.Context, name string) (sql.NullString, error) + func (q *Queries) GetStateCode(ctx context.Context, arg GetStateCodeParams) (sql.NullString, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Region struct + CreatedAt sql.NullTime + Flag int64 + ID int64 + Name string + Translations sql.NullString + UpdatedAt time.Time + WikiDataId sql.NullString + type State struct + CountryCode string + CountryID int64 + CreatedAt sql.NullTime + FipsCode sql.NullString + Flag int64 + ID int64 + Iso2 sql.NullString + Latitude sql.NullFloat64 + Level sql.NullInt64 + Longitude sql.NullFloat64 + Name string + Native sql.NullString + ParentID sql.NullInt64 + Type sql.NullString + UpdatedAt time.Time + WikiDataId sql.NullString