This question already has an answer here:
is there a simple implementation of enums in golang? Something like the following?
type status enum[string] {
pending = "PENDING"
active = "ACTIVE"
}
</div>
This question already has an answer here:
is there a simple implementation of enums in golang? Something like the following?
type status enum[string] {
pending = "PENDING"
active = "ACTIVE"
}
</div>
Something like the following?
Not yet
Read here What is an idiomatic way of representing enums in Go?