Documentation ¶
Index ¶
- func UI() fyne.CanvasObject
- type App
- func (app *App) AllCities() ([]City, error)
- func (app *App) AllCountries() ([]Country, error)
- func (app *App) AllStates() ([]State, error)
- func (app *App) GetCity(cityID int) (*City, error)
- func (app *App) GetCountry(countryID int) Country
- func (app *App) GetCountryStates(countryID int) ([]State, error)
- func (app *App) GetState(stateID int) (*State, error)
- func (app *App) GetStateCites(stateID int) ([]City, error)
- type City
- type Country
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App - This houses the unexported database, so that it wont be tampered with outside this packaage
func (*App) AllCountries ¶
AllCountries - Function to return the list of available countries.
func (*App) GetCountry ¶
GetCountry - function to retrieve the country details
func (*App) GetCountryStates ¶
GetCountryStates - Function to retrieve the states related to a country
Click to show internal directories.
Click to hide internal directories.