code: func (a *AccountService) New(req acme.Account) (acme.ExtendedAccount, error) {
  	var account acme.Account
  	resp, err := a.core.post(a.core.GetDirectory().NewAccountURL, req, &account)
  	location := getLocation(resp)
  
  	if len(location) > 0 {
  		a.core.jws.SetKid(location)
  	}
  
  	if err != nil {
  		return acme.ExtendedAccount{Location: location}, err
  	}
  
  	return acme.ExtendedAccount{Account: account, Location: location}, nil
  }
docs: // New Creates a new account.