]> git.lizzy.rs Git - mt.git/blobdiff - itemdef.go
Add String methods to some types using stringer and fix some minor defects
[mt.git] / itemdef.go
index a761b659e7dcf6c7bd3bca5492a9319e9b635333..12651fa73b395a52659cb862554fc4c461b21be8 100644 (file)
@@ -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