From 00cb3a2488db11c8ce96d182915b8c448edce976 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 4 Sep 2024 09:11:35 +0200 Subject: chore(gonf): add a DECLARED promise status and make it the default instead of PROMISED --- pkg/promises.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/promises.go') diff --git a/pkg/promises.go b/pkg/promises.go index 0198296..340f35d 100644 --- a/pkg/promises.go +++ b/pkg/promises.go @@ -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: -- cgit v1.2.3