account.go
func (dom *Domain) Accounts() ([]*Account, error) {
	var al accountList
	err := dom.cgp.request(listAccounts{Domain: dom.Name}, &al)
	if err != nil {
		return []*Account{}, err
	}
	keys := al.SubKeys
	as := make([]*Account, len(keys))
	for i, k := range keys {
		as[i] = dom.Account(k.Name)
	}
	return as, nil
}
func (dom *Domain) Accounts() ([]*Account, error) {
	var al accountList
	err := dom.cgp.request(listAccounts{Domain: dom.Name}, &al)
	if err != nil {
		return []*Account{}, err
	}
	keys := al.SubKeys
	as := make([]*Account, len(keys))
	for i, k := range keys {
		as[i] = dom.Account(k.Name)
	}
	return as, nil
}
// Accounts lists the acounts of a domain