mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 02:33:10 +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>
918 B
918 B
paths
| paths | |||
|---|---|---|---|
|
Patrones de Go
Este archivo extiende common/patterns.md con contenido específico de Go.
Functional Options
type Option func(*Server)
func WithPort(port int) Option {
return func(s *Server) { s.port = port }
}
func NewServer(opts ...Option) *Server {
s := &Server{port: 8080}
for _, opt := range opts {
opt(s)
}
return s
}
Interfaces Pequeñas
Definir las interfaces donde se usan, no donde se implementan.
Inyección de Dependencias
Usar funciones constructor para inyectar dependencias:
func NewUserService(repo UserRepository, logger Logger) *UserService {
return &UserService{repo: repo, logger: logger}
}
Referencia
Ver skill: golang-patterns para patrones completos de Go incluyendo concurrencia, manejo de errores y organización de paquetes.