aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-03-27 17:35:29 -0500
committerAnthony Wang2022-03-27 17:35:29 -0500
commitd77179fe61a73c03878688e4649a1cb919b3e996 (patch)
treef014705b4818a683404e5eef7809b04adffa22a1
parent14532c94099758d15fb8dfab0ff4e3c21a1f3387 (diff)
Use allowlist template for Go .gitignore
-rw-r--r--.gitignore34
1 files changed, 17 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index adf8f72..a309a01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,23 +1,23 @@
-# ---> 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
+# 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.
#
-# Binaries for programs and plugins
-*.exe
-*.exe~
-*.dll
-*.so
-*.dylib
+# Recommended: Go.AllowList.gitignore
-# Test binary, built with `go test -c`
-*.test
+# Ignore everything
+*
-# Output of the go coverage tool, specifically when used with LiteIDE
-*.out
+# But not these files...
+!/.gitignore
-# Dependency directories (remove the comment below to include it)
-# vendor/
+!*.go
+!go.sum
+!go.mod
-# Go workspace file
-go.work
+!README.md
+!LICENSE
+# !Makefile
+
+# ...even if they are in subdirectories
+!*/