web

package
v0.0.0-...-bfefed7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONStandardRespond

func JSONStandardRespond(w http.ResponseWriter, message string, status int)

JSONStandardResponse standard json response

Types

type JSONStandardResponse

type JSONStandardResponse struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
}

type MuxVars

type MuxVars struct{}

MuxVars standard VarsGetter

func (MuxVars) Get

func (MuxVars) Get(r *http.Request) map[string]string

type VarsGetter

type VarsGetter interface {
	Get(r *http.Request) map[string]string
}

VarsGetter gets mux vars

Jump to

Keyboard shortcuts

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