language13 個の有効ルール2026-09-30 検証済み
Go .gitignore テンプレート
Go compiled binaries, test artifacts, and workspace configuration. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Go
選択されたテンプレート (1)
Go
language
Go compiled binaries, test artifacts, and workspace configuration
#go#golang#go-lang
.gitignore
13 ルール•1 テンプレート
### Go #### If you prefer the allow list template instead of the deny list, see community template:# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore## Binaries for programs and plugins*.exe*.exe~*.dll*.so*.dylib # Test binary, built with `go test -c`*.test # Code coverage profiles and other test artifacts*.outcoverage.**.coverprofileprofile.cov # Dependency directories (remove the comment below to include it)# vendor/ # Go workspace filego.workgo.work.sum # env file.env # Editor/IDE# .idea/# .vscode/ 34 行•UTF-8•LF
決定論的パイプライン
生ソース: Go .gitignore
クローラブルな公式アップストリーム原典go.gitignore•33 lines•UTF-8
# If you prefer the allow list template instead of the deny list, see community template:# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore## Binaries for programs and plugins*.exe*.exe~*.dll*.so*.dylib # Test binary, built with `go test -c`*.test # Code coverage profiles and other test artifacts*.outcoverage.**.coverprofileprofile.cov # Dependency directories (remove the comment below to include it)# vendor/ # Go workspace filego.workgo.work.sum # env file.env # Editor/IDE# .idea/# .vscode/ 主要除外パターンの解説
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
*.exe*.exe~*.dll*.so*.out
環境変数・シークレット情報
API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。
.env
キャッシュ・一時ファイル
コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。
coverage.*
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。