# 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
!/.editorconfig
!/.envrc.sample

!/README.md
!/LICENSE
!/justfile

!/nix
!*.nix

!/.golangci.yaml
!/go.sum
!/go.mod
!/gomod2nix.toml
!*.go

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