mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Added more text hard-wrap tests. RGB now has a constructor that accepts Color. Color now has `toRGB()`.
15 lines
695 B
Plaintext
15 lines
695 B
Plaintext
```go
|
|
func fmt.Errorf(format string, a ...any) error
|
|
```
|
|
|
|
---
|
|
|
|
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
|
|
|
|
If the format specifier includes a %w verb with an error operand, the returned error will implement an Unwrap method returning the operand. If there is more than one %w verb, the returned error will implement an Unwrap method returning a \[]error containing all the %w operands in the order they appear in the arguments. It is invalid to supply the %w verb with an operand that does not implement the error interface. The %w verb is otherwise a synonym for %v.
|
|
|
|
|
|
---
|
|
|
|
[`fmt.Errorf` on pkg.go.dev](https://pkg.go.dev/fmt#Errorf)
|