31 lines
459 B
Go
31 lines
459 B
Go
package main
|
|
|
|
// Web
|
|
|
|
type NavItem struct {
|
|
Caption string
|
|
Destination string
|
|
}
|
|
|
|
func NewNavItem(caption, destination string) NavItem {
|
|
return NavItem{caption, destination}
|
|
}
|
|
|
|
type Stylename string
|
|
|
|
func NewStyleItemList(stylenames ...Stylename) []Stylename {
|
|
return stylenames
|
|
}
|
|
|
|
// Database
|
|
|
|
type Location struct {
|
|
id int
|
|
parent int
|
|
Name string
|
|
Description string
|
|
}
|
|
|
|
func (l *Location) GetParent() *Location {
|
|
return nil
|
|
}
|