6 ms·
The `WithMeta` func will panic if not passed a multiple of 2 varargs. This is exactly what makes go error handling difficult in the first place. Imagine panicki
by darthbanane 1y ago
The `WithMeta` func will panic if not passed a multiple of 2 varargs.
This is exactly what makes go error handling difficult in the first place. Imagine panicking in production because you passed a key without value to your error wrapper for some reason.
- sethammons 1y agoMy solution handled that by inserting default value for the unbalanced key, and a new error key describing the log error