From 9892620ce545dba9dbd91d7dc89a07ece0e11ee9 Mon Sep 17 00:00:00 2001 From: Makis Maropoulos Date: Wed, 13 Jul 2016 14:59:37 +0300 Subject: [PATCH] Add a simple map type RenderOptions to help users remember it easier --- context.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/context.go b/context.go index 465049dd..a9146229 100644 --- a/context.go +++ b/context.go @@ -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{}