Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCountryDB ¶
GetCountryDB - Get the country store
Types ¶
type Countries ¶
type Countries []*Country
Countries - Countries list
func (Countries) ToSchemaCountries ¶
ToSchemaCountries - Convert to country object list
type Country ¶
type Country struct { Code *string `gorm:"column:code;size:50;index;"` // Number Name *string `gorm:"column:name;size:100;index;"` // Name Native *string `gorm:"column:native;size:100;index;"` // Native language Phone *string `gorm:"column:phone;size:20;index;"` // Phone number Continent *string `gorm:"column:continent;size:10;index;"` // Continent where country located Capital *string `gorm:"column:capital;size:100;index;"` // Country's Capital Currency json.RawMessage `gorm:"type:jsonb;"` // Country's Currency Languages json.RawMessage `gorm:"column:languages;type:json"` Timezones json.RawMessage `gorm:"column:timezones;type:jsonb"` LatLng json.RawMessage `gorm:"column:latlng;type:jsonb"` Emoji *string `gorm:"column:emoji"` EmojiU *string `gorm:"column:emojiU"` }
Country - Country entity
func (Country) ToSchemaCountry ¶
ToSchemaCountry - Convert to country object
type Language ¶
type Language struct { Code *string `gorm:"column:code;size:50;unique_index;"` // Number Name *string `gorm:"column:name;size:100;index;"` // Name Native *string `gorm:"column:native;size:100;index;"` // Native Rtl bool `gorm:"column:rtl"` // RTL Default bool `gorm:"column:default"` // Default language for project Active bool `gorm:"column:active"` // Status language can be added as content }
Language - Language entity
func (Language) ToSchemaLanguage ¶
ToSchemaLanguage - Convert to language object
type Languages ¶
type Languages []*Language
Languages - Language list
func (Languages) ToSchemaLanguages ¶
ToSchemaLanguages - Convert to language object list
type SchemaCountry ¶
SchemaCountry - Country object
func (SchemaCountry) ToCountry ¶
func (a SchemaCountry) ToCountry() *Country
ToCountry - Convert to country entity
type SchemaLanguage ¶
SchemaLanguage - Language object
func (SchemaLanguage) ToLanguage ¶
func (a SchemaLanguage) ToLanguage() *Language
ToLanguage - Convert to language entity
Click to show internal directories.
Click to hide internal directories.