registry

package
Version: v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL