Skip to main content

Errorf

Macro Errorf 

Source
macro_rules! Errorf {
    ($fmt:expr $(, $arg:expr)* $(,)?) => { ... };
}
Expand description

fmt.Errorf(format, args…) — returns an error with the formatted message. Supports %w to wrap a single error; its .Error() text replaces the verb at format time, and the returned error unwraps to the original.