respond

package
v0.2.7 Latest Latest
Warning

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

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

README

http respond

Documentation

Overview

Package respond provides common http response functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithJSON

func WithJSON(w gohttp.ResponseWriter, r *gohttp.Request, resp interface{})

WithJSON makes a new json response based on a given response interface If provided resp is of type errors.Error error response will be made, otherwise provider resp will be json encoded and written to w

Types

This section is empty.

Jump to

Keyboard shortcuts

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