registry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package registry contains a registry of URL patterns to http.Handlers and a Register() method for registering a handler during init() in a module.

Index

Constants

This section is empty.

Variables

View Source
var Registry = map[string]http.Handler{}

Registry contains a mapping of URL patterns to http.Handler. This should never be modified except by Register() and only during init().

Functions

func Register

func Register(pattern string, handler http.Handler)

Register registers a pattern with a handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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