.gitignore raw

   1  # Allowlisting gitignore template for GO projects prevents us
   2  # from adding various unwanted local files, such as generated
   3  # files, developer configurations or IDE-specific files etc.
   4  #
   5  # Recommended: Go.AllowList.gitignore
   6  
   7  # Ignore everything
   8  *
   9  # But not these files...
  10  !/.gitignore
  11  !*.go
  12  !go.sum
  13  !go.mod
  14  !*.md
  15  !LICENSE
  16  !*.sh
  17  !Makefile
  18  !*.json
  19  !*.pdf
  20  !.codecov.yml
  21  !*.bin
  22  !*.py
  23  !*.csv
  24  !*.mediawiki
  25  !*.png
  26  !*.jpg
  27  !*.svg
  28  # ...even if they are in subdirectories
  29  !*/
  30