content

package
v0.0.0-...-feb9768 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2019 License: MIT, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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"`
}

func (*Product) AfterAdminCreate

func (p *Product) AfterAdminCreate(res http.ResponseWriter, req *http.Request) error

func (*Product) AfterAdminDelete

func (p *Product) AfterAdminDelete(res http.ResponseWriter, req *http.Request) error

func (*Product) AfterAdminUpdate

func (p *Product) AfterAdminUpdate(res http.ResponseWriter, req *http.Request) error

func (*Product) MarshalEditor

func (p *Product) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Product within the CMS and implements editor.Editable

func (*Product) String

func (p *Product) String() string

String defines how a Product is printed. Update it using more descriptive fields from the Product struct type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL