Documentation ¶
Index ¶
Constants ¶
View Source
const ( OPNEW string = "New_Reservation" OPREM string = "Remove_Reservation" OPCHG string = "Update_Reservation" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reservation ¶
type Reservation struct { ID int `json:"id,omitempty"` Date string `json:"date"` Name string `json:"name"` Hour int `json:"hour"` Party int `json:"party"` }
Reservation is the main object of the system
func Decode ¶
func Decode(b []byte) (Reservation, error)
Decode convert array of bytes into a new instance of a reservation.
func (Reservation) Bytes ¶
func (r Reservation) Bytes() ([]byte, error)
Bytes converts a Reservation instance into an array of bytes.
Click to show internal directories.
Click to hide internal directories.