From 42a34cdc35f72b6b146f48242c52a875bf698dcb Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Wed, 5 Jul 2017 16:55:59 +0200 Subject: [PATCH] docs(context): document keys, errors, and accepted, close #488 --- context.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/context.go b/context.go index 5196bb1..d8c9af0 100644 --- a/context.go +++ b/context.go @@ -48,9 +48,15 @@ type Context struct { handlers HandlersChain index int8 - engine *Engine - Keys map[string]interface{} - Errors errorMsgs + engine *Engine + + // Keys is a key/value pair exclusively for the context of each request + Keys map[string]interface{} + + // Errors is a list of errors attached to all the handlers/middlewares who used this context + Errors errorMsgs + + // Accepted defines a list of manually accepted formats for content negotiation Accepted []string }