func (c *Client) Email() (string, error) {
	c.mut.Lock()
	defer c.mut.Unlock()
	if c.email == "" {
		if err := c.getUserData(); err != nil {
			return "", fmt.Errorf("fetching e-mail from GitHub: %v", err)
		}
	}
	return c.email, nil
}
func (c *Client) Email() (string, error) {
	c.mut.Lock()
	defer c.mut.Unlock()
	if c.email == "" {
		if err := c.getUserData(); err != nil {
			return "", fmt.Errorf("fetching e-mail from GitHub: %v", err)
		}
	}
	return c.email, nil
}
func ( c * Client ) Email ( ) ( string , error ) { c . mut . Lock ( ) defer c . mut . Unlock ( ) if c . email == " " { if err := c . getUserData ( ) ; err != nil { return " " , fmt . Errorf ( " " , err ) } } return c . email , nil }
// Email returns the user-configured email for the authenticated identity.
//
// See https://developer.github.com/v3/users/#get-the-authenticated-user
Email returns the user - configured email for the authenticated identity . See https : // developer . github . com / v3 / users / #get - the - authenticated - user