aboutsummaryrefslogtreecommitdiffstats
path: root/bug/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/status.go')
-rw-r--r--bug/status.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/bug/status.go b/bug/status.go
new file mode 100644
index 00000000..b1b066ff
--- /dev/null
+++ b/bug/status.go
@@ -0,0 +1,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"
+ }
+}