Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Shops map[string]ShopSite
Shops is the list of all running shop sites in the instance.
Functions ¶
This section is empty.
Types ¶
type NewForm ¶
type NewForm struct { SiteName string `form:"site_name" binding:"Required"` SiteDescription string `form:"site_desc" binding:"Required"` Email string `form:"email" binding:"Required;Email"` LogoURL string `form:"logo_url" binding:"Required;Url"` BannerURL string `form:"banner_url" binding:"Required;Url"` Spreadsheet *multipart.FileHeader `form:"spreadsheet" binding:"Required"` }
NewForm represents the data binding structure of a form to create a new website.
type ShopItem ¶
ShopItem represents an item in the shop.
func GetShopItemsFromCSV ¶
GetShopItemsFromCSV marshalls the shop items listed in a CSV file into an array of ShopItem.
Click to show internal directories.
Click to hide internal directories.