mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 18:53:11 +08:00
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>
35 lines
595 B
Markdown
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()
|
|
```
|