11 lines
145 B
Go
11 lines
145 B
Go
|
package sl
|
||
|
|
||
|
import "log/slog"
|
||
|
|
||
|
func Err(err error) slog.Attr {
|
||
|
return slog.Attr{
|
||
|
Key: "error",
|
||
|
Value: slog.StringValue(err.Error()),
|
||
|
}
|
||
|
}
|