Go 1.11 はサポートが終了しており、2026 年 1 月 31 日に非推奨になります。非推奨になると、過去に組織のポリシーを使用して以前のランタイムのデプロイを再度有効にしていた場合でも、Go 1.11 アプリケーションをデプロイできなくなります。既存の Go 1.11 アプリケーションは、非推奨日以降も引き続き実行され、トラフィックを受信します。サポートされている最新バージョンの Go に移行することをおすすめします。
[[["わかりやすい","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 UTC。"],[[["\u003cp\u003eCloud Storage is recommended for reading and writing files in App Engine, but \u003ccode\u003e/tmp\u003c/code\u003e can be used for temporary files.\u003c/p\u003e\n"],["\u003cp\u003eWriting to \u003ccode\u003e/tmp\u003c/code\u003e uses system memory because files are stored in the instance's RAM.\u003c/p\u003e\n"],["\u003cp\u003eFiles in \u003ccode\u003e/tmp\u003c/code\u003e are only accessible to the app instance that created them and are deleted when the instance is terminated.\u003c/p\u003e\n"],["\u003cp\u003eGo's \u003ccode\u003eTempDir\u003c/code\u003e and \u003ccode\u003eTempFile\u003c/code\u003e methods read and write files to the \u003ccode\u003e/tmp\u003c/code\u003e directory by default.\u003c/p\u003e\n"]]],[],null,["# Reading and Writing Temporary Files\n\nWhile [Cloud Storage](/appengine/docs/legacy/standard/go111/using-cloud-storage)\nis the recommended solution for reading and writing files in App Engine,\nif your app only needs to write temporary files, you can use standard\nGo 1.11 methods to write files to a directory named `/tmp`.\n\nAll files in this directory are stored in the instance's RAM, therefore writing\nto `/tmp` takes up system memory. In addition, files in the `/tmp` directory are\nonly available to the app instance that created the files. When the instance is\ndeleted, the temporary files are deleted.\n| Golang provides the [`TempDir`](https://golang.org/pkg/io/ioutil/#TempDir) and [`TempFile`](https://golang.org/pkg/io/ioutil/#TempFile) methods that read and write files to your app instance's `/tmp` directory by default."]]