summaryrefslogtreecommitdiff
path: root/system/item
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-11 18:33:37 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-11 18:33:37 -0800
commitf65a0092d3c30880d8bf6a9e9f07573b36ee7816 (patch)
tree679a602d3b30a6c2effcf90366e79936a1dfad13 /system/item
parent2e0b2d83f065d72fc39f89f592f98af421fce34a (diff)
attempting to force item.Types to be populated before the db Init step
Diffstat (limited to 'system/item')
-rw-r--r--system/item/types.go6
1 files changed, 5 insertions, 1 deletions
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{})
+}