Use allowlist template for Go .gitignore
This commit is contained in:
parent
14532c9409
commit
d77179fe61
34
.gitignore
vendored
34
.gitignore
vendored
|
@ -1,23 +1,23 @@
|
||||||
# ---> Go
|
# Allowlisting gitignore template for GO projects prevents us
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# from adding various unwanted local files, such as generated
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
# files, developer configurations or IDE-specific files etc.
|
||||||
#
|
#
|
||||||
# Binaries for programs and plugins
|
# Recommended: Go.AllowList.gitignore
|
||||||
*.exe
|
|
||||||
*.exe~
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Ignore everything
|
||||||
*.test
|
*
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# But not these files...
|
||||||
*.out
|
!/.gitignore
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
!*.go
|
||||||
# vendor/
|
!go.sum
|
||||||
|
!go.mod
|
||||||
|
|
||||||
# Go workspace file
|
!README.md
|
||||||
go.work
|
!LICENSE
|
||||||
|
|
||||||
|
# !Makefile
|
||||||
|
|
||||||
|
# ...even if they are in subdirectories
|
||||||
|
!*/
|
||||||
|
|
Reference in a new issue