errors/registry.go
func (r *registry) GetAll() []*ErrDescriptor {
	r.RLock()
	defer r.RUnlock()

	res := make([]*ErrDescriptor, 0, len(r.byCode))
	for _, d := range r.byCode {
		res = append(res, d)
	}
	return res
}
func (r *registry) GetAll() []*ErrDescriptor {
	r.RLock()
	defer r.RUnlock()

	res := make([]*ErrDescriptor, 0, len(r.byCode))
	for _, d := range r.byCode {
		res = append(res, d)
	}
	return res
}
// GetAll returns all registered error descriptors