func (f *FriendsService) List(ctx context.Context) ([]Friend, error) {
	req, err := f.client.NewRequest(ctx, "GET", "/v2/friends/list", nil)
	if err != nil {
		return nil, err
	}
	var r struct {
		Friends []Friend
		Total   int
	}
	_, err = f.client.Do(req, &r)
	if err != nil {
		return nil, err
	}
	return r.Friends, nil
}
List lists users friends.
package putio
import (
	"context"
	"fmt"
)
type FriendsService struct {
	client *Client
}