utils

package
v0.0.0-...-f3a3c3f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = JSON
View Source
var DumpJSON = JSON.Dump
View Source
var JSON = payloadDumper{}.Code(http.StatusOK).ContentType("application/json")

Functions

This section is empty.

Types

type Dumper

type Dumper interface {
	Dump(w http.ResponseWriter, payload interface{}) error
	Code(code int) Dumper
	ContentType(typ string) Dumper
	AddHeader(key, val string) Dumper
}

Jump to

Keyboard shortcuts

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