From f65a0092d3c30880d8bf6a9e9f07573b36ee7816 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 11 Jan 2017 18:33:37 -0800 Subject: attempting to force item.Types to be populated before the db Init step --- system/item/types.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'system/item') diff --git a/system/item/types.go b/system/item/types.go index b796309..bcae58a 100644 --- a/system/item/types.go +++ b/system/item/types.go @@ -28,5 +28,9 @@ var ( // Types is a map used to reference a type name to its actual Editable type // mainly for lookups in /admin route based utilities - Types = make(map[string]func() interface{}) + Types map[string]func() interface{} ) + +func init() { + Types = make(map[string]func() interface{}) +} -- cgit v1.2.3