Go .gitignore Vorlage
Go compiled binaries, test artifacts, and workspace configuration. Deterministisch mit Mustern des offiziellen GitHub-Repositorys zusammengeführt, um dein Projekt sauber von Abhängigkeitsordnern, Build-Artefakten und lokalen Umgebungsvariablen zu halten.
Interaktiver Stack-Generator
Im vollständigen Generator öffnenGo compiled binaries, test artifacts, and workspace configuration
### 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/ Quellcode: Go .gitignore
Crawlbare offizielle Upstream-Vorlage# 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/ Wichtige Ausschlussmuster im Überblick
Build-Artefakte & Kompilate
Ignoriert kompilierte Binärdateien, Zwischendateien und Build-Ausgabeordner aus dem Kompiliervorgang.
Umgebungsvariablen & Zugangsdaten
Verhindert das versehentliche Hochladen sensibler Zugangsdaten, API-Schlüssel und lokaler .env-Dateien.
Caches & temporäre Dateien
Ignoriert Compiler-Caches, Test-Coverage-Daten und temporäre Arbeitsdateien, um das Repository schlank zu halten.
Herkunft & Lizenzprüfung
Platziere diese Datei unter dem Namen .gitignore im Stammverzeichnis deines Projekts. Die Änderungen greifen sofort für alle neuen und nicht getrackten Dateien.