79672181

Date: 2025-06-19 14:02:16
Score: 1
Natty:
Report link

How about an WithMandatoryMessage(format string, a ...any) option? In the end, someone could also call New("") with your current API, so you either check for a non-empty message during construction or you loose nothing when someone doesn't use this option.

Otherwise it's guesswork and we need to know more about your problem. What are you trying to achieve?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • High reputation (-1):
Posted by: eik