2024-07-30 08:42:51 +02:00
|
|
|
# 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.
|
2024-06-28 15:28:54 +02:00
|
|
|
#
|
2024-07-30 08:42:51 +02:00
|
|
|
# Recommended: Go.AllowList.gitignore
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
# Ignore everything
|
|
|
|
*
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
# But not these files...
|
|
|
|
!/.gitignore
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
!*.go
|
|
|
|
!go.sum
|
|
|
|
!go.mod
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
!examples/*
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
!*.md
|
|
|
|
!LICENSE
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
!Makefile
|
2024-06-28 15:28:54 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
# Woodpecker CI
|
|
|
|
!.woodpecker/*
|
2024-07-03 10:00:21 +02:00
|
|
|
|
2024-07-30 08:42:51 +02:00
|
|
|
# ...even if they are in subdirectories
|
|
|
|
!*/
|