jsonhelpers

package
v0.0.0-...-78f8226 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyArray = make([]interface{}, 0)

EmptyArray is an obj that when compared with DeepEqual matches an Unmarshaled empty json array

View Source
var EmptyObject = make(map[string]interface{})

EmptyObject is an obj that when compared with DeepEqual matches an Unmarshaled empty json object

Functions

func Marshal

func Marshal(obj interface{}) (s string)

Marshal returns a *bytes.Buffer from a marshalled []byte

func Unmarshal

func Unmarshal(resp *httptest.ResponseRecorder) (obj interface{})

Unmarshal returns interface from json response object

Types

This section is empty.

Jump to

Keyboard shortcuts

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