summaryrefslogtreecommitdiff
path: root/content/types.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 02:16:29 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 02:16:29 -0800
commit40b5cfe2289b179c511a6c73757bb64228f0bc82 (patch)
tree47d28cef40b495cf3e52c65b27aa69ffe605a171 /content/types.go
parentd28d2b6a44bea1f269feadc2b773253a95649f52 (diff)
cleanup template, move ContentName into base Item as String on Identifiable interface, also makes Item implement Stringer, useful in fmt funcs
Diffstat (limited to 'content/types.go')
-rw-r--r--content/types.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/types.go b/content/types.go
index ede2b58..696d589 100644
--- a/content/types.go
+++ b/content/types.go
@@ -6,13 +6,13 @@ const (
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) }
-}
+
+ func init() {
+ Types["%[1]s"] = func() interface{} { return new(%[1]s) }
+ }
---------------------------------------------------------------------------+
+
`
)