wrap

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Http

func Http(fn HttpFunc) http.HandlerFunc

Http returns a http.HandlerFunc that wraps a HttpFunc capable of convenient return types.

Types

type HttpFunc

type HttpFunc func(http.ResponseWriter, *http.Request) interface{}

HttpFunc is a handler used by Http which allows generating simple result types. Return nil to skip the built-in behavior.

Jump to

Keyboard shortcuts

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