data

package
v0.0.0-...-0dc8709 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Films = LoadFilms()
View Source
var People = LoadPersons()
View Source
var Planets = LoadPlanets()
View Source
var Species = LoadSpecies()
View Source
var Starships = LoadStarships()
View Source
var Transports = LoadTransports()
View Source
var Vehicles = LoadVehicles()

Functions

func GetSingleFilmByID

func GetSingleFilmByID(id int) (models.Film, bool)

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

func GetSinglePersonByID(id int) (models.Person, bool)

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

func GetSinglePlanetByID(id int) (models.Planet, bool)

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

func GetSingleSpeciesByID(id int) (models.Species, bool)

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

func GetSingleStarshipByID(id int) (models.Starship, bool)

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

func GetSingleTransportByID(id int) (models.Transport, bool)

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

func GetSingleVehicleByID(id int) (models.Vehicle, bool)

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 LoadFilms

func LoadFilms() []models.Film

func LoadPersons

func LoadPersons() []models.Person

func LoadPlanets

func LoadPlanets() []models.Planet

func LoadSpecies

func LoadSpecies() []models.Species

func LoadStarships

func LoadStarships() []models.Starship

func LoadTransports

func LoadTransports() []models.Transport

func LoadVehicles

func LoadVehicles() []models.Vehicle

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL