Documentation ¶
Overview ¶
Package loc "verpackt" loc.Location für gorm. Dazu müssen alle Felder global sichtbar sein.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SomePersons = []Person{
{Name: "Captain Kirk"},
{Name: "Lara Croft"},
}
View Source
var SomeTrips = []Trip{
{Comment: "Karneval", Start: tx("11.11.2016")},
{Comment: "Neujahrstrip", Start: tx("1.1.2017")},
{Comment: "Sommerreise", Start: tx("12.7.2017")},
}
Functions ¶
This section is empty.
Types ¶
type City ¶
type City struct { Model Location Name string Inhabitants int DestinationID uint Trips []Trip `gorm:"many2many:trip_city;"` }
model.City "verpackt" poi.City für gorm. model.City macht alle Felder global sichtbar, sonst kann gorm damit nicht arbeiten.
type Destination ¶
type Location ¶
Click to show internal directories.
Click to hide internal directories.