mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-14 04:01:30 +08:00
0e9f613fd1
This reverts commit 1bd68ff534.
558 B
558 B
paths
| paths | |||
|---|---|---|---|
|
Go Security
This file extends common/security.md with Go specific content.
Secret Management
apiKey := os.Getenv("OPENAI_API_KEY")
if apiKey == "" {
log.Fatal("OPENAI_API_KEY not configured")
}
Security Scanning
- Use gosec for static security analysis:
gosec ./...
Context & Timeouts
Always use context.Context for timeout control:
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()