go-enum
Installation
SKILL.md
go-enum in Hive
Hive uses go-enum to generate enum methods from // ENUM(...) comments. Generated files are committed — never edit them manually.
How It Works
Define an enum type with a special comment:
// ItemType categorizes an HC item.
//
// ENUM(epic, task)
type ItemType string
go-enum reads the comment and generates item_enum.go (or the file named after the type's source file with _enum suffix) containing: