chore(gonf): add a DECLARED promise status and make it the default instead of PROMISED
This commit is contained in:
parent
48f2e9a2cb
commit
00cb3a2488
6 changed files with 49 additions and 21 deletions
|
@ -9,7 +9,8 @@ type Promise interface {
|
|||
type Status int
|
||||
|
||||
const (
|
||||
PROMISED = iota
|
||||
DECLARED = iota
|
||||
PROMISED
|
||||
BROKEN
|
||||
KEPT
|
||||
REPAIRED
|
||||
|
@ -17,6 +18,8 @@ const (
|
|||
|
||||
func (s Status) String() string {
|
||||
switch s {
|
||||
case DECLARED:
|
||||
return "declared"
|
||||
case PROMISED:
|
||||
return "promised"
|
||||
case BROKEN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue