Skip to content

Instantly share code, notes, and snippets.

@joubertredrat
Last active November 28, 2021 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joubertredrat/66ab0a2f9d4886b7b511cd683f11d347 to your computer and use it in GitHub Desktop.
Save joubertredrat/66ab0a2f9d4886b7b511cd683f11d347 to your computer and use it in GitHub Desktop.
Editorconfig and gitignore for go projects
root = true
[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[{Makefile,go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment