dmitri.shuralyov.com/state/...

Initial commit.
dmitshur committed 6 years ago commit 28bcc343414c6adcd7b6911f9d0ef1ad6fbf30ae
Collapse all
state.go
@@ -0,0 +1,21 @@
// Package state defines states for domain types.
package state

// Issue represents the possible states of an issue.
type Issue string

// The possible states of an issue.
const (
	IssueOpen   Issue = "open"   // An issue that is still open.
	IssueClosed Issue = "closed" // An issue that has been closed.
)

// Change represents the possible states of a change.
type Change string

// The possible states of a change.
const (
	ChangeOpen   Change = "open"   // A change that is still open.
	ChangeClosed Change = "closed" // A change that has been closed without being merged.
	ChangeMerged Change = "merged" // A change that has been closed by being merged.
)