/* Return the database path of the given database. */ func (self *Database) GetPath() string { /* The return value is a string owned by notmuch so should not be * modified nor freed by the caller. */ var p *C.char = C.notmuch_database_get_path(self.db) if p != nil { s := C.GoString(p) return s } return "" }
// Path returns the database path of the database. func (db *DB) Path() string { return C.GoString(C.notmuch_database_get_path(db.toC())) }