mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
21 lines
243 B
Go
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"
|
|
}
|
|
}
|