From 62e09d4518481ed586f7b27b3fb0ede5bec73570 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 20 Feb 2017 10:45:32 +0000 Subject: [PATCH] Make contextKeys private --- json.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/json.go b/json.go index 1998fb8..1233731 100644 --- a/json.go +++ b/json.go @@ -12,11 +12,11 @@ import ( log "github.com/Sirupsen/logrus" ) -// ContextKeys is a type alias for string to namespace Context keys per-package. -type ContextKeys string +// contextKeys is a type alias for string to namespace Context keys per-package. +type contextKeys string // ctxValueLogger is the key to extract the logrus Logger. -const ctxValueLogger = ContextKeys("logger") +const ctxValueLogger = contextKeys("logger") // GetLogger retrieves the logrus logger from the supplied context. Returns nil if there is no logger. func GetLogger(ctx context.Context) *log.Entry {