Documentation ¶
Overview ¶
Package card implements all business logic regarding cards and related types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateName ¶
ValidateName checks if a name of a card is correct
Types ¶
type Card ¶
type Card struct { ID int `json:"id"` Name string `json:"name"` Text string `json:"text"` DateCreated time.Time `db:"created" json:"dateCreated"` DateUpdated time.Time `db:"updated" json:"dateUpdated"` }
Card holds unique key Name and content Text.
Click to show internal directories.
Click to hide internal directories.