Documentation ¶
Index ¶
- type Product
- func (p *Product) AfterAdminCreate(res http.ResponseWriter, req *http.Request) error
- func (p *Product) AfterAdminDelete(res http.ResponseWriter, req *http.Request) error
- func (p *Product) AfterAdminUpdate(res http.ResponseWriter, req *http.Request) error
- func (p *Product) MarshalEditor() ([]byte, error)
- func (p *Product) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct { item.Item Name string `json:"name"` Price float32 `json:"price"` Description string `json:"description"` Image string `json:"image"` }
Product struct
func (*Product) AfterAdminCreate ¶
AfterAdminCreate ...
func (*Product) AfterAdminDelete ¶
AfterAdminDelete ...
func (*Product) AfterAdminUpdate ¶
AfterAdminUpdate ...
func (*Product) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Product within the CMS and implements editor.Editable
Click to show internal directories.
Click to hide internal directories.