Пример #1
0
func (self Status) String() string {
	var p *C.char

	// p is read-only
	p = C.notmuch_status_to_string(C.notmuch_status_t(self))
	if p != nil {
		s := C.GoString(p)
		return s
	}
	return ""
}
Пример #2
0
func (s status) Error() string {
	cstr := C.notmuch_status_to_string(C.notmuch_status_t(s))
	return C.GoString(cstr)
}