summaryrefslogtreecommitdiff
path: root/system/item
diff options
context:
space:
mode:
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{})
+}