// Next retrieves the next tag from the result set. Next returns true if a tag // was successfully retrieved. func (ts *Tags) Next(t *Tag) bool { if !ts.valid() { return false } *t = *ts.get() C.notmuch_tags_move_to_next(ts.toC()) return true }
/* Move the 'tags' iterator to the next tag. * * If 'tags' is already pointing at the last tag then the iterator * will be moved to a point just beyond that last tag, (where * notmuch_tags_valid will return FALSE and notmuch_tags_get will * return NULL). * * See the documentation of notmuch_message_get_tags for example code * showing how to iterate over a notmuch_tags_t object. */ func (self *Tags) MoveToNext() { if self.tags == nil { return } C.notmuch_tags_move_to_next(self.tags) }