summaryrefslogtreecommitdiff
path: root/itemdef.go
diff options
context:
space:
mode:
authoranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
committeranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
commitf967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch)
tree22d628df079bb5cac93cc2338cfbe585ff8a2763 /itemdef.go
parent425da65ed46061303604610bb539d6495b2b1f3f (diff)
downloadmt-f967a747e4ae01fba3a6c3fd693d0e753faf3ae4.tar.xz
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'itemdef.go')
-rw-r--r--itemdef.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/itemdef.go b/itemdef.go
index a761b65..12651fa 100644
--- a/itemdef.go
+++ b/itemdef.go
@@ -11,6 +11,8 @@ const (
ToolItem
)
+//go:generate stringer -type ItemType
+
// An ItemDef defines the properties of an item.
type ItemDef struct {
//mt:lenhdr 16