urls

package
v0.0.0-...-e954c25 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll(r *chi.Mux)

Add all registered URLs into Mux

func GetHead

func GetHead(r chi.Router, pattern string, h http.HandlerFunc)

Register Get() and Head() methods at once Due to issue: https://github.com/go-chi/chi/issues/238#event-1189509880

func Register

func Register(fn func(r chi.Router))

Register URLs as a router Group

func RegisterStatic

func RegisterStatic(url, path string)

Register static files from path, accessible by url

Types

This section is empty.

Jump to

Keyboard shortcuts

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