020_HandlerFunc

command
v0.0.0-...-6ea799e Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 2 Imported by: 0

README

HandlerFunc

http.HandlerFunc

type HandlerFunc func(ResponseWriter, *Request)
func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request)

This is just a nice thing to know about. You wouldn't do this in production code probably.


Question

Could you get http.Handle to take a func with this signature: func(ResponseWriter, *Request)?

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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