git-bug/bug/status.go

21 lines
243 B
Go
Raw Normal View History

2018-07-17 20:28:37 +03:00
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"
}
}