func (c *Client) GetUser(i *GetUserInput) (*User, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}

	path := fmt.Sprintf("/user/%s", i.ID)
	resp, err := c.Get(path, nil)
	if err != nil {
		return nil, err
	}

	var u *User
	if err := decodeBodyMap(resp.Body, &u); err != nil {
		return nil, err
	}

	return u, nil
}
// GetUser retrieves the user information for the user with the given
// id. If no user exists for the given id, the API returns a 404 response.
GetUser retrieves the user information for the user with the given
id. If no user exists for the given id, the API returns a 404 response.
// GetUser retrieves the user information for the user with the given // id . If no user exists for the given id the API returns a 404 response .
func (c *Client) GetUser(i *GetUserInput) (*User, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}
	path := fmt.Sprintf("/user/%s", i.ID)
	resp, err := c.Get(path, nil)
	if err != nil {
		return nil, err
	}
	var u *User
	if err := decodeBodyMap(resp.Body, &u); err != nil {
		return nil, err
	}
	return u, nil
}
func ( c * Client ) GetUser ( i * GetUserInput ) ( * User , error ) { if i . ID == " " { return nil , ErrMissingID } path := fmt . Sprintf ( " " , i . ID ) resp , err := c . Get ( path , nil ) if err != nil { return nil , err } var u * User if err := decodeBodyMap ( resp . Body , & u ) ; err != nil { return nil , err } return u , nil }
GetUser retrieves the user information for the user with the given
id.
GetUser retrieves the user information for the user with the given id .