You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: list_saved_queries.go
    path of file: ./repos/golang-samples/asset/quickstart/list-saved-queries
    
    the code of the file until where you have to start completion: // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Li
    
func listSavedQueries(w io.Writer, projectID string) error {
	// projectID := "my-project-id"
	ctx := context.Background()
	client, err := asset.NewClient(ctx)
	if err != nil {
		return fmt.Errorf("asset.NewClient: %w", err)
	}
	defer client.Close()

	cloudResourceManagerClient, err := cloudresourcemanager.NewService(ctx)
	if err != nil {
		return fmt.Errorf("cloudresourcemanager.NewService: %w", err)
	}

	project, err := cloudResourceManagerClient.Projects.Get(projectID).Do()
	if err != nil {
		return fmt.Errorf("cloudResourceManagerClient.Projects.Get.Do: %w", err)
	}
	projectNumber := strconv.FormatInt(project.ProjectNumber, 10)
	// query name is defined as 'projects/PROJECT_NUMBER'/savedQueries/SAVED_QUERY_ID.
	// we should translate the projectId into a project number first.
	parent := fmt.Sprintf("projects/%s", projectNumber)
	req := &assetpb.ListSavedQueriesRequest{
		Parent: parent}
	it := client.ListSavedQueries(ctx, req)
	for {
		response, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			return fmt.Errorf("error getting saved queries:%w", err)
		}
		fmt.Fprintf(w, "Query Name: %s\n", response.Name)
		fmt.Fprintf(w, "Query Description:%s\n", response.Description)
		fmt.Fprintf(w, "Query Content:%s\n", response.Content)
	}
	return nil
}