This commit is contained in:
netscrawler
2024-06-30 20:44:53 +03:00
parent 61d2be39f1
commit c99f477e35
15 changed files with 468 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package sl
import (
"log/slog"
)
func Err(err error) slog.Attr {
return slog.Attr{
Key: "error",
Value: slog.StringValue(err.Error()),
}
}