@@ -109,7 +109,7 @@ func New(message string) error {
109109// Errorf formats according to a format specifier and returns the string
110110// as a value that satisfies error.
111111// Errorf also records the stack trace at the point it was called.
112- func Errorf (format string , args ... interface {} ) error {
112+ func Errorf (format string , args ... any ) error {
113113 return & fundamental {
114114 msg : fmt .Sprintf (format , args ... ),
115115 stack : callers (),
@@ -198,7 +198,7 @@ func Wrap(err error, message string) error {
198198// Wrapf returns an error annotating err with a stack trace
199199// at the point Wrapf is called, and the format specifier.
200200// If err is nil, Wrapf returns nil.
201- func Wrapf (err error , format string , args ... interface {} ) error {
201+ func Wrapf (err error , format string , args ... any ) error {
202202 if err == nil {
203203 return nil
204204 }
@@ -226,7 +226,7 @@ func WithMessage(err error, message string) error {
226226
227227// WithMessagef annotates err with the format specifier.
228228// If err is nil, WithMessagef returns nil.
229- func WithMessagef (err error , format string , args ... interface {} ) error {
229+ func WithMessagef (err error , format string , args ... any ) error {
230230 if err == nil {
231231 return nil
232232 }
0 commit comments