Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O Artifact Registry oferece suporte a módulos Go e versionamento semântico independente do
seu sistema de controle de versões. Os módulos Go armazenados no Artifact Registry podem ser usados
com outros módulos públicos ou particulares nos seus projetos Go.
Visão geral
Para se familiarizar com o armazenamento de módulos Go no Artifact Registry, consulte o
guia de início rápido.
Quando estiver tudo pronto para saber mais, leia as seguintes informações:
Conceda permissões à conta que
se conectará ao repositório. As contas de serviço para integrações comuns
com o Artifact Registry têm permissões padrão para
repositórios no mesmo projeto.
Para conferir as entradas de registro do Go no Cloud Logging, ative
o registro DATA_WRITE.
Quando você faz upload de um módulo Go para um repositório, a operação é registrada como
UploadGoModule. O Artifact Registry registra os seguintes métodos específicos para
repositórios Go:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[[["\u003cp\u003eArtifact Registry allows storing Go modules with semantic versioning, independent of your version control.\u003c/p\u003e\n"],["\u003cp\u003eYou can use Go modules in Artifact Registry alongside other public or private modules in your Go projects.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Artifact Registry for Go involves creating a repository, granting permissions, and configuring authentication.\u003c/p\u003e\n"],["\u003cp\u003eArtifact Registry logs various operations for Go repositories, including listing versions, viewing module info, and downloading files.\u003c/p\u003e\n"],["\u003cp\u003eTo view Go log entries, \u003ccode\u003eDATA_WRITE\u003c/code\u003e logging must be enabled in Cloud Logging.\u003c/p\u003e\n"]]],[],null,["# Work with Go modules\n\nArtifact Registry supports Go modules and semantic versioning independent of your\nversion control system. Go modules stored in Artifact Registry can be used\nalongside other public or private modules in your Go projects.\n\nOverview\n--------\n\nTo get familiar with storing Go modules in Artifact Registry, you can try\nthe [quickstart](/artifact-registry/docs/go/store-go).\n\nWhen you're ready to learn more, read the following information:\n\n- [Create a Go module repository](/artifact-registry/docs/repositories/create-repos) for your packages.\n- [Grant permissions](/artifact-registry/docs/access-control) to the account that will connect with the repository. Service accounts for common integrations with Artifact Registry have default [permissions](/artifact-registry/docs/access-control#gcp) for repositories in the same project.\n- [Set up authentication to Artifact Registry for Go](/artifact-registry/docs/go/authentication).\n- [Manage your Go modules](/artifact-registry/docs/go/manage-modules).\n- Learn about [semantic versioning in Go](https://go.dev/doc/modules/version-numbers).\n- Learn how to create [remote](/artifact-registry/docs/repositories/remote-repo#go) and [virtual repositories](/artifact-registry/docs/repositories/virtual-repo).\n- Read about how remote and virtual repositories can be used in this [repository usage example](/artifact-registry/docs/repositories#example).\n\nAudit logging\n-------------\n\nTo view Go log entries in Cloud Logging, you must [enable](/logging/docs/audit/configure-data-access#config-console-enable)\n`DATA_WRITE` logging.\n\nWhen you upload a Go module to a repository, the operation is logged as\n`UploadGoModule`. Artifact Registry logs the following specific methods for\nGo repositories:\n\nList versions in a module\n\n- `Go-ListVersions`\n\nView module information\n\n- `Go-ViewModInfo`\n\nDownload the `go.mod` File\n\n- `Go-DownloadModFile`\n\nDownload the zip File\n\n- `Go-DownloadZipFile`\n\nFor information about other Artifact Registry log entries, see\n[View audit logs](/artifact-registry/docs/audit-logging)."]]