# Allowlisting gitignore template for GO projects prevents us
# from adding various unwanted local files, such as generated
# files, developer configurations or IDE-specific files etc.
#
# Recommended: Go.AllowList.gitignore

# Ignore everything
*

# But not these files...
!/.gitignore

# Go
!*.go
!/go.sum
!/go.mod
!/.golangci.yml
!/.goreleaser.yaml
!*.tmpl

# Test fixtures
!**/testdata/**/*.txt
!**/testdata/**/*.txtar
!**/testdata/**/*.snap

# Mise
!mise.toml

# Git
!/.gitattributes
!.gitignore
!/.mailmap

# GitHub Actions
!.github/**/*.yml
!.github/**/*.yaml
!.github/renovate.json

# Tangled
!.tangled/**/*.yml

# Docs
!/README.md
!/LICENSE
!schema/emf.json

# Docker
!/Dockerfile

# Other
!/.typos.toml
!/.copier-answers.yml

# ...even if they are in subdirectories
!*/
