paramconvert

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToColon = regexp.MustCompile(`(?s)\{(.*?)\}`)

ToColon is a regular expression that converts {param} to :param.

Functions

func BraceToColon

func BraceToColon(URL string) string

BraceToColon converts a URL with parameters that are surrounded in braces to parameters that start with a colon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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