X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fgo%2Fsrc%2Fnotmuch%2Fnotmuch.go;fp=bindings%2Fgo%2Fsrc%2Fnotmuch%2Fnotmuch.go;h=b9230ad2c3455852724b3ea6b3ed2287acb65ecb;hp=00bd53acc3cab3f8866553ce4a3abe85a5ac6208;hb=d81fc4b42de2687a06046d068fe391282b0b8b8f;hpb=ea90d8e043e348616d9e17cef66c17274342dacd diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 00bd53ac..b9230ad2 100644 --- a/bindings/go/src/notmuch/notmuch.go +++ b/bindings/go/src/notmuch/notmuch.go @@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) { /* Close the given notmuch database, freeing all associated * resources. See notmuch_database_open. */ -func (self *Database) Close() { - C.notmuch_database_destroy(self.db) +func (self *Database) Close() Status { + return Status(C.notmuch_database_destroy(self.db)) } /* Return the database path of the given database.