コード例 #1
0
ファイル: notmuch.go プロジェクト: vlmarek/notmuch-solaris
/* 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 ""
}
コード例 #2
0
ファイル: db.go プロジェクト: gmuch/gmuch
// Path returns the database path of the database.
func (db *DB) Path() string {
	return C.GoString(C.notmuch_database_get_path(db.toC()))
}