[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\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)."]]