sample

package
v0.0.0-...-f81fbb4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var A = &AnyHandler{}
View Source
var A2 = &anyHandler{}
View Source
var H = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	if r.Method != "POST" {
		return
	}
	fmt.Fprintf(w, "hello world")
})
View Source
var IndexVar = Index
View Source
var IndexVar2 = index

Functions

func Index

func Index(w http.ResponseWriter, r *http.Request)

Types

type AnyHandler

type AnyHandler struct{}

func (*AnyHandler) ServeHTTP

func (a *AnyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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