Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCardOfMenu ¶
GetCardOfMenu returns card which is assigned to the specific menu
func ValidateName ¶
ValidateName checks if a name of a card is correct
Types ¶
type Menu ¶
type Menu struct { ID int `json:"id"` Name string `json:"name"` CardID int `db:"card_id" json:"cardID"` DateCreated time.Time `db:"created" json:"dateCreated"` DateUpdated time.Time `db:"updated" json:"dateUpdated"` }
Menu holds Name and wired card.
Click to show internal directories.
Click to hide internal directories.