func (c *Client) ListEmails(opt ListEmailsOptions) ([]*Email, *Response, error) {
	opt.setDefaults()
	emails := make([]*Email, 0, opt.PageSize)
	resp, err := c.getParsedResponse("GET", fmt.Sprintf("/user/emails?%s", opt.getURLQuery().Encode()), nil, nil, &emails)
	return emails, resp, err
}
ListEmails all the email addresses of user
package gitea
import (
	"bytes"
	"encoding/json"
	"fmt"
)
type Email struct {
	Email    string `json:"email"`
	Verified bool   `json:"verified"`
	Primary  bool   `json:"primary"`
}
type ListEmailsOptions struct {
	ListOptions
}