func (ts *Tags) get() *Tag { ctag := C.notmuch_tags_get(ts.toC()) tag := &Tag{ Value: C.GoString(ctag), tags: ts, } return tag }
/* Get the current tag from 'tags' as a string. * * Note: The returned string belongs to 'tags' and has a lifetime * identical to it (and the query to which it ultimately belongs). * * See the documentation of notmuch_message_get_tags for example code * showing how to iterate over a notmuch_tags_t object. */ func (self *Tags) Get() string { if self.tags == nil { return "" } s := C.notmuch_tags_get(self.tags) // we dont own 's' return C.GoString(s) }