---
title: "GO .GITIGNORE"
category: SNIPPETS
date: 2026-11-04
version: "1.0"
format: "TXT"
size: "572 B"
license: "CC0-1.0"
sha256: 16c7d7ad8c23ef27ccc8fe3c605752024a4d353f7e0b745defad7e6b0430b719
source: "https://github.com/github/gitignore/blob/main/Go.gitignore"
download: "https://original.wales/files/snippets/go.gitignore"
tags: ["GITIGNORE","GIT","GO","OFFICIAL"]
summary: "GitHub’s official Go .gitignore template."
canonical: "https://original.wales/files/gitignore-go/"
---

# GO .GITIGNORE

GitHub’s official Go .gitignore template.

## TEXT

# 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
*.out
coverage.*
!coverage.go
*.coverprofile
profile.cov

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
go.work.sum

# env file
.env

# Editor/IDE
# .idea/
# .vscode/

## SOURCE

https://github.com/github/gitignore/blob/main/Go.gitignore
