Add a simple map type RenderOptions to help users remember it easier

This commit is contained in:
Makis Maropoulos 2016-07-13 14:59:37 +03:00
parent 74aeb081ee
commit 9892620ce5

View File

@ -76,6 +76,11 @@ var (
)
type (
// RenderOptions is a helper type for the optional runtime options can be passed by user when Render
// an example of this is the "layout" or "gzip" option
// same as Map but more specific name
RenderOptions map[string]interface{}
// Map is just a conversion for a map[string]interface{}
// should not be used inside Render when PongoEngine is used.
Map map[string]interface{}