reverse

package
v1.999.0-test Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Urls *urlStore

Functions

func Add

func Add(urlName, urlAddr string, params ...string) string

Adds url to store

func AddGr

func AddGr(urlName, group, urlAddr string, params ...string) string

Adds url with concat group, but returns just urlAddr

func Clear

func Clear()

func Get

func Get(urlName string) string

Gets raw url by name

func GetAllParams

func GetAllParams() map[string][]string

Gets all params

func GetAllUrls

func GetAllUrls() map[string]string

Gets saved all urls

func Rev

func Rev(urlName string, params ...string) string

Reverse url by name

Types

This section is empty.

Jump to

Keyboard shortcuts

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