]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/go/pkg/notmuch.go
go: fix the notmuch status constants
[notmuch] / bindings / go / pkg / notmuch.go
index f9f86b5e3c8f928bddac6f781a345d923c5af0f3..e065b547ab8bbca0c27de968cac48b28d3ef9fc9 100644 (file)
@@ -14,7 +14,7 @@ import "unsafe"
 // Status codes used for the return values of most functions
 type Status C.notmuch_status_t
 const (
-       STATUS_SUCCESS Status = 0
+       STATUS_SUCCESS Status = iota
        STATUS_OUT_OF_MEMORY
     STATUS_READ_ONLY_DATABASE
     STATUS_XAPIAN_EXCEPTION