package
module
Version:
v0.0.0-...-b93265b
Opens a new window with list of versions in this module.
Published: Jan 25, 2016
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Utils by Ali Hamidi
Some useful snippets
- jsonResponse - Responds with JSON
- envelope/unvelope - Easily nest and unpack JSON
- enableProfiling - Add
pprof
endpoints to a router (e.g. when using Negroni)
Documentation
¶
func Envelope(d interface{}, envelope string) map[string]interface{}
Nests map (for adding envelope)
JSON response convenience function
Unpacks map (opposite process of envelope)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.