wildcard

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Reserved = []string{"revision"}

Reserved is the list of reserved wildcards.

Functions

func Extract

func Extract(wildcard string) []string

Extract return the list of wildcards.

func ExtractValue

func ExtractValue(a, b string) map[string]string

ExtractValue is used to extract the wildcard values.

func Normalize

func Normalize(content string) string

Normalize is used to normalize the wildcards.

func Present

func Present(content string) bool

Present check if a given content has a wildcard.

func Replace

func Replace(wildcard string, content map[string]string) string

Replace the wildcard tag for it's value.

func Valid

func Valid(content string) error

Valid check if a given content has valid wildcards.

func ValidURL

func ValidURL(rawEndpoint string) error

ValidURL check whenever a endpoint is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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