Linter i formater szablonów Go
djLint lintuje i formatuje szablony Go. Ustaw profil golang, aby reguły i formatowanie były do nich dopasowane.
Szablony Go (text/template, html/template) napędzają też motywy Hugo i charty Helm, więc używaj dla nich tego samego profilu.
Z wiersza poleceń
djlint /path/to/templates --profile=golang
Lub w pliku konfiguracyjnym
Skonfiguruj djLint w pliku pyproject.toml, djlint.toml / .djlint.toml lub .djlintrc swojego projektu.
[tool.djlint]
profile = "golang"
profile = "golang"
{ "profile": "golang" }