git-bug/bug/status.go
2018-07-17 19:28:37 +02:00

21 lines
243 B
Go

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"
}
}