Documentation
¶
Index ¶
- Variables
- func GetSingleFilmByID(id int) (models.Film, bool)
- func GetSinglePersonByID(id int) (models.Person, bool)
- func GetSinglePlanetByID(id int) (models.Planet, bool)
- func GetSingleSpeciesByID(id int) (models.Species, bool)
- func GetSingleStarshipByID(id int) (models.Starship, bool)
- func GetSingleTransportByID(id int) (models.Transport, bool)
- func GetSingleVehicleByID(id int) (models.Vehicle, bool)
- func LoadFilms() []models.Film
- func LoadPersons() []models.Person
- func LoadPlanets() []models.Planet
- func LoadSpecies() []models.Species
- func LoadStarships() []models.Starship
- func LoadTransports() []models.Transport
- func LoadVehicles() []models.Vehicle
Constants ¶
This section is empty.
Variables ¶
var Films = LoadFilms()
var People = LoadPersons()
var Planets = LoadPlanets()
var Species = LoadSpecies()
var Starships = LoadStarships()
var Transports = LoadTransports()
var Vehicles = LoadVehicles()
Functions ¶
func GetSingleFilmByID ¶
GetSingleFilmByID searches for the given Film with ID id in the given []models.Film
Returns the models.Film and true if the Film exists, empty models.Film and false otherwise.
func GetSinglePersonByID ¶
GetSinglePersonByID searches for the given Planet with ID id in the given []models.Person
Returns the models.Person and true if the Planet exists, empty models.Person and false otherwise.
func GetSinglePlanetByID ¶
GetSinglePlanetByID searches for the given Planet with ID id in the given []models.Planet
Returns the models.Planet and true if the Planet exists, empty models.Planet and false otherwise.
func GetSingleSpeciesByID ¶
GetSingleSpeciesByID searches for the given Species with ID id in the given []models.Species
Returns the models.Species and true if the Planet exists, empty models.Species and false otherwise.
func GetSingleStarshipByID ¶
GetSingleStarshipByID searches for the given Starship with ID id in the given []models.Starship
Returns the models.Starship and true if the Starship exists, empty models.Starship and false otherwise.
func GetSingleTransportByID ¶
GetSingleTransportByID searches for the given Transport with ID id in the given []models.Transport
Returns the models.Transport and true if the Transport exists, empty models.Transport and false otherwise.
func GetSingleVehicleByID ¶
GetSingleVehicleByID searches for the given Vehicle with ID id in the given []models.Vehicle
Returns the models.Vehicle and true if the Vehicle exists, empty models.Vehicle and false otherwise.
func LoadPersons ¶
func LoadPlanets ¶
func LoadSpecies ¶
func LoadStarships ¶
func LoadTransports ¶
func LoadVehicles ¶
Types ¶
This section is empty.