Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'common/hreflect/helpers.go')
-rw-r--r--common/hreflect/helpers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/hreflect/helpers.go b/common/hreflect/helpers.go
index 0cc42ecc5..beab182bb 100644
--- a/common/hreflect/helpers.go
+++ b/common/hreflect/helpers.go
@@ -17,6 +17,7 @@
package hreflect
import (
+ "context"
"reflect"
"github.com/gohugoio/hugo/common/types"
@@ -124,3 +125,5 @@ func indirectInterface(v reflect.Value) reflect.Value {
}
return v.Elem()
}
+
+var ContextInterface = reflect.TypeOf((*context.Context)(nil)).Elem()