mapper

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 CreateGetFeedbackThanks(req *http.Request, basePage core.Page, lang, referrer, wholeSiteURL string) model.Feedback

func IsSiteDomainURL added in v1.5.0

func IsSiteDomainURL(urlString, siteDomain string) bool

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

func NormaliseURL(urlString string) string

NormaliseURL when a string is a URL without a scheme (e.g. `host.name/path`), add it (`https://`)

Types

This section is empty.

Jump to

Keyboard shortcuts

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