76ac1787
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package bug type Status int const ( _ Status = iota OpenStatus ClosedStatus ) func (s Status) String() string { switch s { case OpenStatus: return "open" case ClosedStatus: return "closed" default: return "unknown status" } }