# 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
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Code coverage profiles and other test artifacts
*.out
coverage.*
*.coverprofile
profile.cov
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
go.work.sum
# env file
.env
# Editor/IDE
# .idea/
# .vscode/
建议添加
.gitignore文件本仓库是一个 Go 开发环境示例,建议添加
.gitignore文件以帮助新手:🛡️ 为什么需要
.gitignore?.env、credentials.json等敏感文件__pycache__/、*.pyc、dist/等不应进入版本控制git status更清晰,减少噪音📎 推荐模板(来自 GitHub gitignore 社区)
以下
.gitignore模板来自 github/gitignore:@Zhihang.Li 建议审核并添加此文件,让新手从第一个 commit 就养成良好的安全习惯 🚀