go

格式化的 errors.New

英文: Formatted errors.New 问题 我想实现一个与fmt.Sprintf接受相同参数的errors.New版本。为此,我编写了以下函数: func NewError(format ...