// GetReg retrieves an existing registration.
// The url argument is an Account URI.
GetReg retrieves an existing registration.
The url argument is an Account URI.
// GetReg retrieves an existing registration . // The url argument is an Account URI .
func (c *Client) GetReg(ctx context.Context, url string) (*Account, error) {
	a, err := c.doReg(ctx, url, "reg", nil)
	if err != nil {
		return nil, err
	}
	a.URI = url
	return a, nil
}
func ( c * Client ) GetReg ( ctx context . Context , url string ) ( * Account , error ) { a , err := c . doReg ( ctx , url , " " , nil ) if err != nil { return nil , err } a . URI = url return a , nil }
GetReg retrieves an existing registration.
GetReg retrieves an existing registration .