feat(go): Added depguard rules.

This commit is contained in:
Spencer Brower
2026-05-26 17:06:20 -04:00
parent 0caabaf5a2
commit 4b6e7072da
2 changed files with 18 additions and 0 deletions

1
templates/go/.air.toml Normal file
View File

@@ -0,0 +1 @@
tmp_dir = "var/air"

View File

@@ -49,6 +49,23 @@ linters:
- varnamelen
- wsl_v5
settings:
depguard:
rules:
main:
list-mode: strict
files:
"**/main.go"
allow:
- "$gostd"
catchall:
list-mode: strict
files:
- "!$test"
- "!**/main.go"
- "**/internal/**"
allow:
- "$gostd"
- "golang.org/**"
recvcheck:
disable-builtin: false
exclusions: