func (iter *EntryIterator) Next() *Entry {
	if int(iter.currentIndex) < len(iter.entries) {
		info := iter.entries[iter.currentIndex]
		iter.currentIndex++
		return &Entry{loginInfo: info}
	}
	return nil
}
Next returns the next Entry, if any, or nil if none is available.
package mobileapi
import (
	"sort"
	"github.com/renatoathaydes/go-hash/gohash_db"
)
type GroupIterator struct {
	state        gohash_db.State
	keys         []string
	currentIndex uint
}
type EntryIterator struct {
	Group        string
	entries      []gohash_db.LoginInfo
	currentIndex uint
}
type Entry struct {
	loginInfo gohash_db.LoginInfo
}
type Database struct {
	FileName string
	state    gohash_db.State
}
func (iter *GroupIterator) Next() *EntryIterator {
	if int(iter.currentIndex) < len(iter.keys) {
		group := iter.keys[iter.currentIndex]
		iter.currentIndex++
		info := iter.state[group]
		return &EntryIterator{entries: info, Group: group}
	}
	return nil
}