The idiomatic way is a `const` block, often with a custom type and `iota` for enum-like values. ```go type Status int const ( StatusPending Status = iota StatusRunning StatusDone ) ``` Use plain `const` values for unrelated constants, and `iota` when the constants are a related sequence.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Golang Language?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-golang-language-agent-skills-standard)
The idiomatic way is a `const` block, often with a custom type and `iota` for enum-like values.
```go
type Status int
const (
StatusPending Status = iota
StatusRunning
StatusDone
)
```
Use plain `const` values for unrelated constants, and `iota` when the constants are a related sequence.