Documentation ¶
Index ¶
Constants ¶
View Source
const ( //AlertLvlError default bootstrap danger color AlertLvlError = "danger" // AlertLvlWarning maps to default bootstrap warning color AlertLvlWarning = "warning" // AlertLvlInfo maps to default bootstrap info color AlertLvlInfo = "info" // AlertLvlSuccess maps to default bootstrap success color AlertLvlSuccess = "success" // AlertMsgGeneric is displayed when any random error // is encountered by our backend. AlertMsgGeneric = "Something went wrong. Please try " + "again, and pricing us if the problem persists." )
Variables ¶
View Source
var ( // LayoutDir is the directory containing // parts of the website that define // the whole LayoutDir string = "views/layouts/" // TemplateDir contains all of the templates to be rendered // as pages TemplateDir string = "views/" // TemplateExt is the ending of the template files TemplateExt string = ".gohtml" )
Functions ¶
This section is empty.
Types ¶
type Data ¶
Data is for content to be served in a webpage
func (*Data) AlertError ¶
AlertError accepts the alert data and creates an alert message for the webpage
type PublicError ¶
PublicError is to allow for the generation of dynamic error messages
type View ¶
View contains data that is used to render webpage
Click to show internal directories.
Click to hide internal directories.