Ir al contenido

Not Implemented Stub (ARCH5191)

Esta página aún no está disponible en tu idioma.

Key go.quality.not-implemented-stub · Severity warning · Category quality

Stubs like panic("not implemented") crash at runtime. They are unfinished work left in production code paths.

func (s *Service) Export() ([]byte, error) {
panic("not implemented")
}
func (s *Service) Export() ([]byte, error) {
data, err := json.Marshal(s.records)
if err != nil {
return nil, err
}
return data, nil
}

Complete the stub with a real implementation, or remove the method/path entirely.