httpjson

package
v0.0.0-...-4b954a8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerFunc

func HandlerFunc(f func(w JSONResponseWriter, r *JSONRequest)) http.Handler

Types

type JSONRequest

type JSONRequest struct {
	http.Request
	// contains filtered or unexported fields
}

func (*JSONRequest) Decode

func (j *JSONRequest) Decode(v interface{}) error

type JSONResponseWriter

type JSONResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (JSONResponseWriter) Encode

func (j JSONResponseWriter) Encode(v interface{}) error

Jump to

Keyboard shortcuts

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