revr

package module
v0.0.0-...-ef24f9d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: MIT Imports: 2 Imported by: 1

README

revr

Reverse routes

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLStore

type URLStore struct {
	// contains filtered or unexported fields
}

URLStore a store of urls

func New

func New() *URLStore

New returns a URLStore

func (*URLStore) MustAdd

func (u *URLStore) MustAdd(name, path string) string

MustAdd adds a route and it panic if error

func (*URLStore) MustReverse

func (u *URLStore) MustReverse(name string, params ...string) string

MustReverse get a reversed url and it panic if error

Jump to

Keyboard shortcuts

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