mapper

package
v1.23.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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