Files
everything-claude-code/docs/es/rules/golang/security.md
Santiago González Siordia ac0f11c640 docs: add Spanish (es) translation (#2095)
Adds a complete Spanish translation of the ECC documentation under
docs/es/, mirroring the Turkish (docs/tr/) translation in scope.
141 files covering agents, commands, rules, skills, contexts, examples,
and core docs. Updates root README.md with the Spanish language link.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 13:26:42 +08:00

35 lines
595 B
Markdown

---
paths:
- "**/*.go"
- "**/go.mod"
- "**/go.sum"
---
# Seguridad en Go
> Este archivo extiende [common/security.md](../common/security.md) con contenido específico de Go.
## Gestión de Secretos
```go
apiKey := os.Getenv("OPENAI_API_KEY")
if apiKey == "" {
log.Fatal("OPENAI_API_KEY not configured")
}
```
## Escaneo de Seguridad
- Usar **gosec** para análisis estático de seguridad:
```bash
gosec ./...
```
## Context y Timeouts
Siempre usar `context.Context` para control de timeout:
```go
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
```