diff options
author | Steve <nilslice@gmail.com> | 2016-12-19 11:19:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 11:19:53 -0800 |
commit | 3791fadda7b761ffba38c567da29e2e71acd1dfb (patch) | |
tree | 79d810f9aafa1868ee0760983937470d0eea3db8 /content/types.go | |
parent | b20c5bdee38682edc851e646d815a34689c3c923 (diff) |
[addons] Creating foundation for plugin-like system "Addons" (#24)
* adding addons dir and sample addon which enables the use of a new input element in forms for referencing other content. "addons" is a conceptual plugin-like feature, similar to wordpress "plugins" dir, but not as sophisticated
Diffstat (limited to 'content/types.go')
-rw-r--r-- | content/types.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/content/types.go b/content/types.go deleted file mode 100644 index 696d589..0000000 --- a/content/types.go +++ /dev/null @@ -1,21 +0,0 @@ -package content - -const ( - // ErrTypeNotRegistered means content type isn't registered (not found in Types map) - ErrTypeNotRegistered = `Error: -There is no type registered for %[1]s - -Add this to the file which defines %[1]s{} in the 'content' package: - - - func init() { - Types["%[1]s"] = func() interface{} { return new(%[1]s) } - } - - -` -) - -// Types is a map used to reference a type name to its actual Editable type -// mainly for lookups in /admin route based utilities -var Types = make(map[string]func() interface{}) |