Could you transpose this code 
from google.cloud import artifactregistry_v1, run_v2
from google.auth import impersonated_credentials
import google.oauth2.id_token
import google.auth
import google.auth.transport.requests
import re
import os
import settings


def get_cloudrun_image_tags(credentials, project_id, run_regions):
    client = run_v2.ServicesClient(credentials=credentials)
    cloudrun_image_tags = []
    try:
        for region in run_regions:
            request = run_v2.ListServicesRequest(
                parent=f"projects/{project_id}/locations/{region}",
            )
            services = client.list_services(request=request)
            for service in services:
                image_tag = service.template.containers[0].image.split(":")[-1]
                cloudrun_image_tags.append(
                    image_tag
                ) if image_tag not in cloudrun_image_tags else cloudrun_image_tags
        return cloudrun_image_tags
    except google.api_core.exceptions.NotFound:
        return None


def delete_older_tags(
    credentials,
    project_id,
    artifact_registry_location,
    artifact_registry_name,
    image_tags_in_use,
):
    client = artifactregistry_v1.ArtifactRegistryClient(credentials=credentials)
    try:
        print("Parsing tags:")
        request = artifactregistry_v1.ListDockerImagesRequest(
            parent=f"projects/{project_id}/locations/{artifact_registry_location}/repositories/{artifact_registry_name}",
        )
        docker_images = client.list_docker_images(request=request)
        for image in docker_images:
            for tag in image.tags:
                if tag not in image_tags_in_use:
                    print(f"    - Image tag '{tag}' will be deleted... ;")
                    request = artifactregistry_v1.DeleteTagRequest(
                        name=re.sub(
                            r"\@.*",
                            f"/tags/{tag}",
                            image.name.replace("dockerImages", "packages"),
                        )
                    )
                    client.delete_tag(request=request)
                else:
                    print(f"    - Image tag '{tag}' is being used ;")
        print("Operation complete.")
    except google.api_core.exceptions.NotFound as e:
        print(e)


def delete_older_artifacts(
    credentials, project_id, artifact_registry_location, artifact_registry_name
):
    client = artifactregistry_v1.ArtifactRegistryClient(credentials=credentials)
    try:
        print("Parsing artifacts:")
        request = artifactregistry_v1.ListDockerImagesRequest(
            parent=f"projects/{project_id}/locations/{artifact_registry_location}/repositories/{artifact_registry_name}",
        )
        docker_images = client.list_docker_images(request=request)
        for image in docker_images:
            if not image.tags:
                print(f"    - Image name '{image.name}' will be deleted... ;")
                request = artifactregistry_v1.DeleteVersionRequest(
                    name=image.name.replace("dockerImages", "packages").replace(
                        "@", "/versions/"
                    ),
                    force=True,
                )
                client.delete_version(request=request)
            else:
                print(f"    - Image name '{image.name}' is being used ;")
        print("Operation complete.")
    except google.api_core.exceptions.NotFound as e:
        print(e)


if __name__ == "__main__":
    run_regions = settings.settings.gcp_project_run_regions
    artifact_registry_location = (
        settings.settings.gcp_project_artifact_registry_location
    )
    artifact_registry_name = settings.settings.gcp_project_artifact_registry_name
    source_credentials, project_id = google.auth.default()
    impersonate_service_account = (
        f"main-service-account@{project_id}.iam.gserviceaccount.com"
    )
    target_scopes = ["https://www.googleapis.com/auth/cloud-platform"]
    credentials = impersonated_credentials.Credentials(
        source_credentials=source_credentials,
        target_principal=impersonate_service_account,
        target_scopes=target_scopes,
    )
    image_tags_in_use = get_cloudrun_image_tags(credentials, project_id, run_regions)
    image_tags_in_use.append(os.environ["CIRCLE_SHA1"])
    delete_older_tags(
        credentials,
        project_id,
        artifact_registry_location,
        artifact_registry_name,
        image_tags_in_use,
    )
    delete_older_artifacts(
        credentials, project_id, artifact_registry_location, artifact_registry_name
    )
in Go language, please ?