{"id":63802,"library":"dmarkham-enumer","title":"Enumer","description":"A tool to generate Go code that adds useful methods to Go enums (constants with a specific type).","status":"active","version":"1.6.3","language":"go","source_language":null,"source_url":"https://github.com/dmarkham/enumer","tags":["code-generation","enum","go-generate","tool"],"install":[{"cmd":"go get github.com/dmarkham/enumer","lang":"bash","label":"Install github.com/dmarkham/enumer"}],"dependencies":[],"imports":[{"symbol":"enumer","correct":"github.com/dmarkham/enumer"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/dmarkham/enumer\"\n)\n\n//go:generate enumer -type=Color -json\n\ntype Color int\n\nconst (\n\tRed Color = iota\n\tGreen\n\tBlue\n)\n\nfunc main() {\n\tfmt.Println(Red.String())\n}","lang":"go","description":"Generates enum methods for a Color type"},"warnings":[],"env_vars":null,"search_vec":"'add':9 'code':7,21 'code-gener':20 'constant':15 'enum':1,14,23 'generat':5,22,26 'go':6,13,25 'go-gener':24 'method':11 'specif':18 'tool':3,27 'type':19 'use':10","created_at":"2026-06-17T16:48:04.824573+00:00","updated_at":"2026-06-17T16:48:04.824573+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dmarkham/enumer","github":"https://github.com/dmarkham/enumer","docs":"https://pkg.go.dev/github.com/dmarkham/enumer#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}