Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrScriptNotFound = errors.New("hyper: utmvc script not found")
)
Functions ¶
func GetUtmvcSubmitPath ¶
func GetUtmvcSubmitPath() string
GetUtmvcSubmitPath generates a UTMVC submit path with a unique random query parameter.
This function constructs a submit path for the UTMVC script by appending a random floating-point number as a query parameter. The random number is used to ensure the uniqueness of the request.
func ParseUtmvcScriptPath ¶
ParseUtmvcScriptPath parses the UTMVC script path from the given script content.
This function searches the provided script content for a specific pattern matching the UTMVC script path using a precompiled regular expression. It extracts and returns the first match if found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.