fisch/types.go
2025-02-18 19:45:28 +01:00

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
}