Documentation ¶
Index ¶
- Constants
- func CreateGetFeedback(req *http.Request, basePage core.Page, validationErrors []core.ErrorItem, ...) model.Feedback
- func CreateGetFeedbackThanks(req *http.Request, basePage core.Page, lang, referrer, wholeSiteURL string) model.Feedback
- func IsSiteDomainURL(urlString, siteDomain string) bool
- func NormaliseURL(urlString string) string
Constants ¶
View Source
const ( WholeSite = "The whole website" ASpecificPage = "A specific page" )
Variables ¶
This section is empty.
Functions ¶
func CreateGetFeedback ¶ added in v1.0.0
func CreateGetFeedback(req *http.Request, basePage core.Page, validationErrors []core.ErrorItem, ff model.FeedbackForm, lang string) model.Feedback
CreateGetFeedback returns a mapped feedback page to the feedback model
func CreateGetFeedbackThanks ¶ added in v1.0.0
func IsSiteDomainURL ¶ added in v1.5.0
IsSiteDomainURL is true when urlString is a URL and its host ends with `.`+siteDomain (when siteDomain is blank, or uses config.SiteDomain)
func NormaliseURL ¶ added in v1.5.0
NormaliseURL when a string is a URL without a scheme (e.g. `host.name/path`), add it (`https://`)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.